Re: upload file size

From: Date: Mon, 17 Nov 2003 07:37:17 +0000
Subject: Re: upload file size
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-169895@lists.php.net to get a copy of this message
Gerard Samuel wrote:
On Friday 14 November 2003 12:48 pm, joe wrote:
is there a way to check the file size without fully uploading the file?
No there isnt, well at least not via php...
correct. There are two solutions you can upload with a java applet, the applet can be configured to lock the upload at a predefined limit. Would save you a lot of bandwidth. The second is to upload via perl script, which can check the Content-length header *before* processing the file upload and block it. In fact megaupload - the php upload progress bar that i did some time ago has this feature. sorry about the belated reply message had been stuck in a que..
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.

« previous php.general (#169895) next »