Bug #18117 Updated: Retreive Content-Length of files being posted.
| From: | phpfeature at panman dot nl dot nospam | Date: | Wed, 03 Jul 2002 01:35:16 +0000 |
| Subject: | Bug #18117 Updated: Retreive Content-Length of files being posted. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12903@lists.php.net to get a copy of this message | ||
ID: 18117
Updated by: phpfeature@panman.nl.nospam
Reported By: phpfeature@panman.nl.nospam
-Status: Bogus
+Status: Open
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.2.1
New Comment:
So, to make clear: this script should being executed while the upload
is in progress. (uploading large files can take several minutes).
Previous Comments:
------------------------------------------------------------------------
[2002-07-02 14:29:48] phpfeature@panman.nl.nospam
Yes, i know, it's uploaded when the target script starts. But while
it's being uploaded I would like to call another script that shows the
progress of the upload. This script should get the Content-Length of
the files being uploaded from somewhere. PHP does handle the file
before the script starts. I think this only asks for a quite small
addition to rfc1867.c in the PHP source. Unfortunataly, i don't know
enough about C to do it myself.
------------------------------------------------------------------------
[2002-07-02 14:25:54] sniper@php.net
Not possible. The file is already uploaded by the time
the script starts..
------------------------------------------------------------------------
[2002-07-02 14:15:34] phpfeature@panman.nl.nospam
What i really would like to see, in some next version, is this: some
way to retrieve the (temporary) filenames and, more important, the
expected Content-Length (if any is given, offcource), of files being
uploaded. This would be verry usefull with file uploads: One could
create a (self reloading) popup with the progress of the files beeing
uploaded. (the content length could be compared to the file in the temp
directory). I think easiest way to pass this variables would be a
session, or a temp file that could be parsed in the temp dir, that is
beinig deleted with the other uploaded files, if the target script
finishes. For now I can show the size of all the files being uploaded,
but since i don't know the expected size, there is no way of telling
the progress to the user.
I 'masked' my email adress since i got a lot of spam on the email
adress i used on this site before.
Thanx in advance! PanMan.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18117&edit=1