Re: [PHP] Checking File Size BEFORE Uploading

2002-10-14 Thread Monty

Hi John, yes, unfortunately setting the MAX_FILE_SIZE field only works once
the files have been uploaded. Thanks for the reply!


> From: [EMAIL PROTECTED] (John W. Holmes)
> Organization: U.S. Army
> Reply-To: <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Date: Mon, 14 Oct 2002 16:10:48 -0400
> To: "'Monty'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: RE: [PHP] Checking File Size BEFORE Uploading
> 
> 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...
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Checking File Size BEFORE Uploading

2002-10-14 Thread John W. Holmes

> 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...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Checking File Size BEFORE Uploading

2002-10-14 Thread Monty

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?

Thanks!


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php