Issue Bug Closed

#88235Ext: form file upload Memory error when file size exceeds available memory

Susanne Moog 04/27/19, 16:25 updated 05/07/19, 12:10

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.

Reviews 2