RE: [PHP] Checking File Size BEFORE Uploading
| From: | John W. Holmes | Date: | Mon, 14 Oct 2002 20:10:48 +0000 |
| Subject: | RE: [PHP] Checking File Size BEFORE Uploading | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119944@lists.php.net to get a copy of this message | ||
> If someone uploads a file via an HTML form, is there a way to check
the
> file
> size before it's uploaded to the server?
You can set the MAX_FILE_SIZE in the hidden element of your form, but I
don't think that stops the form from being submitted if the file size is
too large. Basically, the file has to be uploaded before you can tell
what size it is.
---John Holmes...