Limit ALL Upload file sizes to 25 MB (#5356) [deploy]
This commit is contained in:
parent
4d7d3edb2d
commit
aa7b76d9a2
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ class BaseUploader < CarrierWave::Uploader::Base
|
|||
%w[jpg jpeg jpe gif png ico bmp dng]
|
||||
end
|
||||
|
||||
def size_range
|
||||
1..25.megabytes
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
# strip EXIF (and GPS) data
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue