Nicos, the problem is that MAX_FILE_SIZE doesn't check the file size before
it's uploaded to the server, it only works afterwards. So, you have to first
wait for the file to upload before you know whether or not it's too large.

Thanks.

> Hi,
> 
> 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">
> </form>
> 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
> [EMAIL PROTECTED]


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

Reply via email to