Re: file upload size, before upload complete

From: Date: Thu, 30 Aug 2001 18:07:03 +0000
Subject: Re: file upload size, before upload complete
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65354@lists.php.net to get a copy of this message
<Original message> From: christopher johnson <chrisj@thecyberpunk.com> Date: Thu, Aug 30, 2001 at 12:47:00PM -0500 Message-ID: <20010830183748.85476.qmail@pb1.pair.com> Subject: [PHP] file upload size, before upload complete > Can anyone think of a way to determine the file size of what the user is > uploading before it has been fully uploaded? > I know because of security restrictions javascript can't do this, but is it > possible in php? > I'm trying to make an upload progress bar, it doesn't have to be exact, but > a close approximation would be nice. > > Thanks, > Chris </Original message> <Reply> Not possible. You first have to submit the form before the PHP starts. And then it's too late, 'cause at the moment you submit the form, the files are already being uploaded. You should really have a client-side solution for this (if there is any). </Reply> -- * R&zE: -- »»»»»»»»»»»»»»»»»»»»»»»» -- Renze Munnik -- DataLink BV -- -- E: renze@datalink.nl -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- ««««««««««««««««««««««««

« previous php.general (#65354) next »