Forum Moderators: coopster
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
When a larger file is uploaded a warning is issued. I can't seem to find any way to work with the MAX_FILE_SIZE to a) suppress the warning, and b) display a friendly error message to the visitor.
It's probably something really simple that I've missed... ;)
So, is there a practical use for the MAX_FILE_SIZE field other than generating an error message? It seems pretty useless from what I can find. :o
I dunno, I guess some people have a use for it. The MAX_FILE_SIZE field can be changed client side, so its not going to be a solid check for a file size anyway. If you want to check if a file is too big for your server to process use the upload_max_filesize directive.
dc