Drop zone does not respect php.ini max file size settings

Bug #1216481 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Robert Lyon

Bug Description

When I drag and drop an image larger than 2 MB into the drop zone, the system refuses to upload it because it says that the maximum file upload size is exceeded.

However, I can upload the same image just fine by clicking the Browse button. I checked my php.ini settings, and both

 upload_max_filesize
 post_max_size

are set higher than 2 MB.

Revision history for this message
Robert Lyon (robertl-9) wrote :
Robert Lyon (robertl-9)
Changed in mahara:
status: Triaged → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/2435
Committed: http://gitorious.org/mahara/mahara/commit/73149145244e76f5e781b416b8b732166098254f
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 73149145244e76f5e781b416b8b732166098254f
Author: Robert Lyon <email address hidden>
Date: Mon Aug 26 08:18:28 2013 +1200

make dropzone respect upload_max_filesize setting from php.ini (bug #1216481)

- retrieving the upload_max_filesize value in php.ini
- converting it to bytes and then coverting it back to megabytes
as that is what the dropzone requires

Change-Id: I35bf81a47be01a393359d9699420f86e9b20f674
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Aaron Wells (u-aaronw)
Changed in mahara:
milestone: 1.8rc1 → 1.8.0
Aaron Wells (u-aaronw)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.