Bump upload max filesize
This commit is contained in:
parent
6d9ef9ee64
commit
401498eccb
|
@ -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?
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue