The way is :
<form enctype="multipart/form-data" action="_URL_" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
See the MAX_FILE_SIZE hidden BEFORE the userfile's type.
See also: http://www.php.net/manual/sk/features.file-upload.php


Nicos - CHAILLAN Nicolas
www.WorldAKT.com - Hébergement de sites Internet

"Monty" <[EMAIL PROTECTED]> a écrit dans le message de news:
> If someone uploads a file via an HTML form, is there a way to check the
> 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

Reply via email to