Fatal error memory limit when uploading with UploadHandler.php

Author: cfconsultancyCreated Feb 17, 2020Updated Feb 18, 2020
Labelsfeature

When uploading a too big image I get the following error

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 28672 bytes) in I:\Apache242\htdocs\cfcmssmallpro_thumb_mysqli_utf4_n\cms\tinymce\filemanager\UploadHandler.php on line 596

That is this line $this->image_objects[$file_path] = $func($file_path);

so I think there should be a check for memory limit and the return false to stop the script

Source: blueimp/jQuery-File-Upload