Oversize file uploads are not handled well

Bug #547505 reported by Howard Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Unassigned

Bug Description

Mahara doesn't seem to consider files that are bigger than the maximum size allowed in PHP (or wherever). Two things would be good:

* A "max upload size 64MB" (or whatever) on file upload screens, and...
* Properly detect oversize files and issue a sane error message

At the moment it just sits and sulks if the file was too big.

This bug was imported from eduforge.org, see:
https://eduforge.org/tracker/index.php?func=detail&aid=3280&group_id=176&atid=739

Revision history for this message
Nigel-catalyst (nigel-catalyst) wrote :

The former is a good idea. The latter is actually hard for PHP - if the file uploaded is too big, your script often isn't executed at all (the actual behaviour depends on whether you violate upload_max_filesize or post_max_size). But we can have a play with this and see if the behaviour can be made better.

Sadly, btw, we can't detect the filesize on the client, for javascript security reasons.

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

Message added to file upload screen for 1.2

Revision history for this message
Nigel-catalyst (nigel-catalyst) wrote :

Yep, message is there. And as mentioned before, sadly our script doesn't even get control if the file is too big :(

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.