Hi all,
Does anyone know how to use the $_FILES['userfile']['error'] directives to trap the #1 and #2 errors (UPLOAD_ERR_INI_SIZE and UPLOAD_ERR_FORM_SIZE) without having a PHP-generated error first? The #4 error (UPLOAD_ERR_NO_FILE) get trapped without a PHP-generated error message. I never encounetered the #3 error but I suppose it will be trapped correctly too.
I set display_errors off and error_reporting to NULL using ini_set() but nothing does 🙁
Will I really have to use the file functions to check the file size of the file that will be uploaded before the actual upload?
Or is there a way of handling this error PHP displays the error?
Thanks,
Steven