# Upload progress

- Thread: https://externals.io/message/26082
- Original archive: https://news-web.php.net/php.internals/26082
- Started by Fred Moses on 2006-10-18T16:30:30+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #26082 — Fred Moses — 2006-10-18T16:30:30+00:00

URL: https://externals.io/message/26082#26082

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

---

## #26083 — Rasmus Lerdorf — 2006-10-18T16:31:58+00:00

URL: https://externals.io/message/26082#26083 · In reply to: #26082

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

---

## #26084 — Christian Stocker — 2006-10-18T16:32:27+00:00

URL: https://externals.io/message/26082#26084 · In reply to: #26082

> 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

---

## #26085 — Michael B Allen — 2006-10-18T19:36:30+00:00

URL: https://externals.io/message/26082#26085 · In reply to: #26083

On Wed, 18 Oct 2006 09:31:58 -0700
Rasmus Lerdorf <rasmus@lerdorf.com> wrote:

> Fred Moses wrote:
> > […]
> 
> 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/

---

## #26086 — Rasmus Lerdorf — 2006-10-18T19:39:00+00:00

URL: https://externals.io/message/26082#26086 · In reply to: #26085

Michael B Allen wrote:
> On Wed, 18 Oct 2006 09:31:58 -0700
> Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
> 
> > […]
> 
> 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

---

## #26087 — Michael B Allen — 2006-10-18T19:50:25+00:00

URL: https://externals.io/message/26082#26087 · In reply to: #26086

On Wed, 18 Oct 2006 12:39:00 -0700
Rasmus Lerdorf <rasmus@lerdorf.com> wrote:

> Michael B Allen wrote:
> > […]
> 
> 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/

---

## #26088 — Rasmus Lerdorf — 2006-10-18T19:55:13+00:00

URL: https://externals.io/message/26082#26088 · In reply to: #26087

Michael B Allen wrote:
> On Wed, 18 Oct 2006 12:39:00 -0700
> Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
> 
> > […]
> 
> 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
