Bump upload max filesize

This commit is contained in:
Karina Kwiatek 2023-12-17 23:09:35 +01:00
parent 6d9ef9ee64
commit 401498eccb
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ class BaseUploader < CarrierWave::Uploader::Base
def store_dir = "/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"
def size_range = (1.byte)..(2.megabytes)
def size_range = (1.byte)..(5.megabytes)
def paperclip_path
return "/users/:attachment/:id_partition/:style/:basename.:extension" if APP_CONFIG["fog"].blank?

View File

@ -1,7 +1,7 @@
class ProfileHeaderUploader < BaseUploader
def default_url(*args)
"/images/header/#{[version_name || args.first, 'no_header.jpg'].compact.join('/')}"
end
def default_url(*args) = "/images/header/#{[version_name || args.first, 'no_header.jpg'].compact.join('/')}"
def size_range = (1.byte)..(10.megabytes)
version :web do
process resize_to_fit: [1500, 350]