Project

General

Profile

Bug #88055

Updated by Susanne Moog over 5 years ago

Typo3 Version: 9.5.4 

 h2. 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. 

 h2. Error 2: Memory error when file size exceeds available memory 

 --> Moved *How to #88235 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.

Back