Re: file Upload - checking file size before uploading

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 10 May 2006 13:39, Jay Blanchard wrote:
> [snip]
> Is there anyway to check the size of a file before it starts uploading
> it?
> For instance, if the file is huge, and takes ages to upload, and is then
> rejected by the server, the user will be somewhat annoyed!
> [/snip]
>
> PHP is server-side and cannot check anything client-side. You cold use
> something client-side, like JavaScript, to check the file size and then
> deliver a warning if the file is too large.

Alternately ... "This service only accepts files up to 10 MB.  Uploading 
anything larger will fail."

Assumes comprehension unfortunately.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux