Commit 81f97b52b34d5d7daa35974f505bd56fa4d1fdb8
1 parent
21c434dc
Exists in
master
and in
29 other branches
Changed Image resize_to and max file size
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/models/image.rb
... | ... | @@ -9,15 +9,15 @@ class Image < ActiveRecord::Base |
9 | 9 | has_attachment :content_type => :image, |
10 | 10 | :storage => :file_system, |
11 | 11 | :path_prefix => 'public/image_uploads', |
12 | - :resize_to => '320x200>', | |
12 | + :resize_to => '800x600>', | |
13 | 13 | :thumbnails => { :big => '150x150', |
14 | 14 | :thumb => '100x100', |
15 | 15 | :portrait => '64x64', |
16 | 16 | :minor => '50x50', |
17 | 17 | :icon => '20x20!' }, |
18 | - :max_size => 500.kilobytes # remember to update validate message below | |
18 | + :max_size => 5.megabytes # remember to update validate message below | |
19 | 19 | |
20 | - validates_attachment :size => N_("%{fn} of uploaded file was larger than the maximum size of 500.0 KB") | |
20 | + validates_attachment :size => N_("%{fn} of uploaded file was larger than the maximum size of 5.0 MB") | |
21 | 21 | |
22 | 22 | delay_attachment_fu_thumbnails |
23 | 23 | ... | ... |