Re: Re: [ANNOUNCEMENT] HTTP_Request-1.2 (stable) Released.
| From: | Eric Johnston | Date: | Mon, 27 Oct 2003 19:48:59 +0000 |
| Subject: | Re: Re: [ANNOUNCEMENT] HTTP_Request-1.2 (stable) Released. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-8632@lists.php.net to get a copy of this message | ||
On Mon, 2003-10-27 at 12:20, Jeroen Houben wrote:
> Stefan Walk wrote:
>
> >On Mon, Oct 27, 2003 at 07:25:54PM +0100, Jeroen Houben wrote:
> >
> >
> >>Well that is just plain cool :-)
> >>So do you think it will also work for uploads? This is more a generic
> >>question than a PEAR question I guess, but I was just wondering if it's
> >>possible to follow the progress of a user uploading files using an HTML
> >>form.
> >>
> >>
> >
> >Not without using evil hacks (2 frames, one of them watching the
> >filesize of the upload) or hacking PHP itself (there is a patch
> >available, i believe) but since PHP reads the entire input before
> >executing a single code line it isn't possible with an out-of-the-box
> >PHP i believe.
> >
> >
> >
> hmm okay. But what about a popup window? That would essentially be like
> using frames right? Do you have any code for this?
>
> Jeroen
Yes, a popup would be the equivalent of a frame...
I can't see a way to either identify the temporary file or to accurately
guess how much has been uploaded... "since PHP reads the entire input
before executing a single code line it isn't possible with an
out-of-the-box PHP i believe." This may be wrong. It could be that the
HTTP server doesn't pass the request to the script until it is entirely
up to the server (which would make sense). If that is true, no amount
of PHP hacking is going to do anything whatsoever.
The only choice I could think of is a Java applet or something else on
the client side (which is always messy and inconsistent in my
experience)...
The only indicator that should always work is the request progress bar
in the browser.
--
Eric