> this could really kill my bandwidth. is there a way to check 
> the file size
> without fully uploading the file?

Although it has been called an "urban legend" :), you could try the old
MAX_FILE_SIZE trick. For this, add a hidden tag before the <input
type="file"> tag:

<input type="hidden" name="MAX_FILE_SIZE" value="(your $ of bytes here)">

This is an instruction to the browser to restrict the size of files that it
will attempt to upload, but browers are not required to honor it.

Kirk

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

Reply via email to