Re: Upload progress

From: Date: Wed, 18 Oct 2006 19:55:13 +0000
Subject: Re: Upload progress
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-26088@lists.php.net to get a copy of this message
Michael B Allen wrote:
On Wed, 18 Oct 2006 12:39:00 -0700 Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
Michael B Allen wrote:
On Wed, 18 Oct 2006 09:31:58 -0700 Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
Fred Moses wrote:
What ever became of support for a progress bar during file upload? It seems to have been relegated to the doldrums. It would be extremely handy for a commercial client of mine whose customers upload large image files.
It's in 5.2. You can see it running here: http://progphp.com/progress.php
This is cool! How big can the files be? Are they limited to post_max_size and similar?
Yes, it's just the regular file upload code, so the same restrictions are enforced.
Can an extension get access to the client socket such that it can decode chunked POSTs of unlimited size? I want to read buffers within the extension as opposed to writing it to a file.
You don't get to read it from the extension, but you do get access to the data in the just read buffer each time the hook is called. Have a look at the rfc1867.c source code. It's pretty straightforward. -Rasmus

« previous php.internals (#26088) next »