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.
$handle->file_max_size allows you to set a limit that the class can enforce.
However, the error message suggests that you have a limit set in your php.ini file: upload_max_filesize. You can see its value with phpinfo().
So what happens in your case is that the web server refuses the file because of the limit in your php.ini, well before the class has a chance to check the filesize against $handle->file_max_sizeReply
However, the error message suggests that you have a limit set in your php.ini file: upload_max_filesize. You can see its value with phpinfo().
So what happens in your case is that the web server refuses the file because of the limit in your php.ini, well before the class has a chance to check the filesize against $handle->file_max_size