Re: What does MAX_FILE_SIZE do?
| From: | John W. Holmes | Date: | Thu, 08 Apr 2004 23:25:37 +0000 |
| Subject: | Re: What does MAX_FILE_SIZE do? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182930@lists.php.net to get a copy of this message | ||
Ben Ramsey wrote:
I was reading about this here: http://us3.php.net/manual/en/features.file-upload.php It says: <quote> But you should add MAX_FILE_SIZE anyway as it saves users the trouble to wait for a big file being transferred only to find out that it was too big afterwards. </quote> So, I decided to add <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> to my form. It didn't seem to do anything. Is the browser supposed to use this to throw a browser-genrated error to me, or something?I think the intent is that the browser would catch files that are too large before they actually have to be uploaded. I don't know that any browsers actually support this, though. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com