I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Bug #2255

Error 500 when upload image avatar lager 250x800

Added by Minh Thien over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Major
Assignee:
Target version:
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.

error.txt View (10.1 KB) Minh Thien, 11 Oct 2013 05:34

Associated revisions

Revision 31 (diff)
Added by Andriy Lesyuk almost 10 years ago

Fixed alignment in table, fixed model errors (#2255)

History

#1 Updated by Minh Thien over 10 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 almost 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 almost 10 years ago

  • Due date set to 11 Jun 2014
  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF

Terms of use | Privacy policy