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.


> 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:
> --
> Nicos - CHAILLAN Nicolas

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to