Re: Detect file size BEFORE upload it

From: Date: Thu, 06 Oct 2005 12:15:02 +0000
Subject: Re: Detect file size BEFORE upload it
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-223689@lists.php.net to get a copy of this message
Hi Ruben, Thursday, October 6, 2005, 7:38:35 AM, you wrote: > The problem is that I was able to detect file size after complete > file is transfered. > I need to detect file size before all file is transfered, in order > to cancel it and preserve server resources. > Any ideas? The only way to do it would be to write your own client uploading application in the likes of Java or ActiveX. Anything client side is always going to fail because it doesn't know about the size of the file until it has it, by which point it's too late. Cheers, Rich -- Zend Certified Engineer http://www.launchcode.co.uk

« previous php.general (#223689) next »