Page MenuHomePhabricator

show warning when filesize to big of uploaded file
Closed, ResolvedPublic

Description

Author: thomas.coopman

Description:
When I upload a file that is bigger than the allowed size, I get no error page but just a clear white page, (there is no source on the page) This page should show an error message instead.
Even better would be to check the file size before uploading and don't start the upload at all.


Version: 1.12.x
Severity: enhancement

Details

Reference
bz12943

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:01 PM
bzimport set Reference to bz12943.
bzimport added a subscriber: Unknown Object (MLST).

It is not possible to check the file size before uploading. However, when you upload a file which is bigger than the allowed size, an error message is shown (just tested it again to make sure). If you're not getting an error message, this can be because some Apache settings, perhaps. Can you give a link to the wiki on which you have that problem?

thomas.coopman wrote:

I have this problem on techbase.kde.org. The maximum file size is about 150KB

The described output is consistent with a PHP fatal error with display_errors disabled, or low-level breakage of PHP (such as a crash).

Check the web server's error log, and ensure that the memory limit and post size limit are set to reasonable values.

Three years on, this should probably be closed: indeed, newer browsers will now get warned prior to uploading if their upload is too big. If there ever was a MW bug, there isn't any more.

Closing as FIXED, could equally be WORKSFORME I guess.