Does the hidden field MAX_FILE_SIZE have any effect on a file
submission that is too large (on the client side)? The PHP manual at
http://cn.php.net/manual/en/features.file-upload.php suggests that, if
MAX_FILE_SIZE is supplied, then a browser should warn the user that the
file they are attempting to upload is too large, and this would prevent
the user from needlessly uploading files that the server then tells
them is too large. I have tried tests on both FF 1.5 & IE 6, and both
submit a file that is too large as indicated by the MAX_FILE_SIZE
field. The relevant HTML code I'm using is showed below.
<form enctype="multipart/form-data" method="post">
<input type="text" value="'.$filePath.'" />
<input type="hidden" name="MAX_FILE_SIZE" value="'.$maxSize.'" />
<input type="file" id="fileInput" name="theFile" />
<input type="hidden" name="formnumber" value="'.$fileNumber.'" /'
<input type="submit" name="submit" />
</form>
Thanks
taras