class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
It is strange, because your error log is not consistent: file_src_size : 5640077 (max= 33554432) error: File too big.
The message "File too big" happens only if the image size is larger than the maximum size, that is if 5640077 > 33554432, which is not the case.
Is that error log produced when you upload any file? Or only files larger than 2mb? To me, it looks more like a memory error, rather than an upload size error. Do you have any error messages in your web server log?Reply
file_src_size : 5640077 (max= 33554432)
error: File too big.
The message "File too big" happens only if the image size is larger than the maximum size, that is if 5640077 > 33554432, which is not the case.
Is that error log produced when you upload any file? Or only files larger than 2mb? To me, it looks more like a memory error, rather than an upload size error. Do you have any error messages in your web server log?
ini_set( 'memory_limit', '128M' );
Thanks for reply.