October 5th, 2000, 09:05 AM
Suppose we have a form with a file upload and a user try to send a file whose size is larger than MAX_FILE_SIZE (let's say, 1 Mb). In this case a warning appears and the file isn't uploaded. It's OK the file not to be upload, by I want to disable the display of warning. I tried with the function error_reporting but it doesn't work, because (I think) php check the size of file after the end of the file that contain the form and before the beginning of file specified in action; so, putting error_reporting in any of this file is useless.