At 11:48 AM +0700 8/5/07, php mail wrote:
Hi All,
How do I prior check file's size in server side before the upload process
begin ?
Regards,
Feris
If you want file information for a file on the *server*, see
http://www.php.net/manual/en/ref.filesystem.php
If you want file size information *before the upload begins*, that
would be on the client side. There's no foolproof or general way to
check file information on the client. I don't think you can do it
with JavaScript; you might be able to do it on a Windows PC with
VBScript, and Java could do it.
PHP can refuse to accept files larger than a specified size, which
isn't exactly what you're asking:
http://us.php.net/manual/en/features.file-upload.php
For more information, documentation sets in multiple languages are
available here:
http://www.php.net/docs.php
-steve
--
+--------------- my people are the people of the dessert, ---------------+
| Steve Edberg http://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center sbedberg@xxxxxxxxxxx |
| Bioinformatics programming/database/sysadmin (530)754-9127 |
+---------------- said t e lawrence, picking up his fork ----------------+
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php