Upload progress

php.internals

Fred Moses

19 years ago
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. Fred Moses

Rasmus Lerdorf

19 years ago
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 -Rasmus

Michael B Allen

19 years ago
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? Mike
-- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/

Rasmus Lerdorf

19 years ago
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. -Rasmus

Michael B Allen

19 years ago
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. Mike
-- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/

Rasmus Lerdorf

19 years ago
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

Christian Stocker

19 years ago
On 18.10.2006 18:30 Uhr, 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.
http://blog.bitflux.ch/archive/2006/09/28/upload-progress-meter-extension-for-php-5-2.html Not in PECL yet, didn't find the time to properly package it... chregu
> > Fred Moses >
-- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 44 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | christian.stocker@bitflux.ch | GPG 0x5CE1DECB