Limit ALL Upload file sizes to 25 MB (#5356) [deploy]

This commit is contained in:
Molly Struve 2020-01-07 11:20:40 -05:00 committed by GitHub
parent 4d7d3edb2d
commit aa7b76d9a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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