Bug #88235
closedExt: form file upload Memory error when file size exceeds available memory
100%
Description
Original Report: https://forge.typo3.org/issues/88055
How to reproduce:
- Upload file which is smaller than post_max_size/max_upload_size php settings but larger than available php memory.
Error shown:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 215859576 bytes) in typo3/sysext/form/Classes/Slot/FilePersistenceSlot.php on line 143
Suspected cause
Use of file_get_contents which would store complete contents of file in memory.
Updated by Susanne Moog over 5 years ago
- Related to Bug #88055: Faulty error-handling when uploading large files added
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60596
Updated by Gerrit Code Review over 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60603
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f9f6694a18cb97735c6e094607ff1f4be9890644.
Updated by Georg Ringer 4 months ago
- Related to Bug #95419: Fileadmin upload larger than php memory limit results in excaused memory limit fatal error (e.g. a 2 GB Video File Upload) added