When a file is uploaded larger than the max_upload the script is killed and it shows a white screen.
How can I get it to return an error rather than end the script?
I tried using the MAX_FILE_SIZE field in the form, but that only returned an error when the file was below the php max.
Otherwise it also produced a white screen.
Any ideas?
E
Capturing errors when a large file is uploading
Moderator: General Moderators
Re: Capturing errors when a large file is uploading
post_max_size ?
Re: Capturing errors when a large file is uploading
And much depends on the configuration server. In normal operation, $ _FILES and $ _POST should be empty. Not page 
Re: Capturing errors when a large file is uploading
Right that's what I meant. It shuts down the script when the file is above the maximum allowed in the PHP ini.