The php script starts to execute AFTER the file has already been
uploaded so the quick answer is no you can't get the file size prior to
the upload finishing (in PHP). I fought with a similar problem and
ended up implementing the uploading portion of a script using perl
which has access to the file as it is uploading.
Jeff
On 12-Dec-05, at 4:26 PM, Jay Blanchard wrote:
[snip]
i am making a form to upload files to server
i know i can detect the file size after being uploaded, but i do want
to detect the file after it is being uploaded to the server.
is there anyway i can do this ?
[/snip]
You can detect file size on the client side with JavaScript, this may
help;
http://www.codeproject.com/jscript/search_in_files.asp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php