Bug #2255
Error 500 when upload image avatar lager 250x800
Start date:
11 Oct 2013
Due date:
11 Jun 2014
% Done:
100%
Redmine version:
External issue:
Description
When I am create a new Advertising and Upload a image avatar.
If size of the image larger 250x800, redmine throw a error, please see attach file.
Thanks.
Associated revisions
Fixed alignment in table, fixed model errors (#2255)
History
#1 Updated by Minh Thien almost 11 years ago
Edit file : /plugins/reklama/app/controllers/advertisements_controller.rb
images = Magick::Image.read(file.path)
if images
if images.first.columns > 3250 || images.first.rows > 3800
#@advertisement.errors.add(:image, :invalid_size)
return false
end
end
This error fixed.
#2 Updated by Andriy Lesyuk over 10 years ago
- Status changed from New to Open
- Priority changed from Critical to Major
- Target version changed from 0.3.0 to 0.2.1
#3 Updated by Andriy Lesyuk over 10 years ago
- Due date set to 11 Jun 2014
- Status changed from Open to Closed
- % Done changed from 0 to 100