Bug #88055
closed
Faulty error-handling when uploading large files
Added by Jarvis H over 5 years ago.
Updated over 5 years ago.
Sprint Focus:
Remote Sprint
Description
Typo3 Version: 9.5.4
Error 1: File size exceeds post_max_size¶
How to reproduce:
- Upload file larger then post_max_size
Error shown:
Warning: POST Content-Length of 215854163 bytes exceeds the limit of 104857600 bytes in Unknown on line 0
Suspected cause:
This is the normal error handling for php, but maybe it is possible to check if the file is too large before this occurs, to ensure a proper error message.
Error 2: Memory error when file size exceeds available memory¶
--> Moved to #88235
- Priority changed from Should have to Must have
- Sprint Focus set to Remote Sprint
- Related to Bug #88235: Ext: form file upload Memory error when file size exceeds available memory added
- Description updated (diff)
- Status changed from New to In Progress
- Assignee set to Susanne Moog
- Target version set to Candidate for Major Version
- Status changed from In Progress to Under Review
We cannot sensible catch the error as it is coming directly from PHP (and in this case not via the PHP upload error handling but we never even get to the point where $_FILES is filled).
As the install tool already checks mismatches of post_max_size and upload_max_size this would clearly be a misconfiguration of either TYPO3 or the server and should not be handled in form. However, to allow the editor / form integrator to react to max size issues the current patch now displays a hint with the configured max size that is usable at that moment so an integrator can either use that or talk to their admin to get the configuration fixed.
Additionally, I moved error 2 to a separate issue.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF