I stumbled across it here:

http://us.php.net/manual/en/session.upload-progress.php

According to one commenter, it is available in 5.4 and beyond, but not
5.3.x, though I can't find any official pronouncement that confirms
that.

An excerpt, to save you a click:

When the session.upload_progress.enabled INI option is enabled, PHP
will be able to track the upload progress of individual files being
uploaded. This information isn't particularly useful for the actual
upload request itself, but during the file upload an application can
send an POST request to a separate endpoint (via XHR for example) to
check the status.

The upload progress will be available in the $_SESSION superglobal
when an upload is in progress, and when POSTing a variable of the same
name as the session.upload_progress.name INI setting is set to. When
PHP detects such POST requests, it will populate an array in the
$_SESSION, where the index is a concatenated value of the
session.upload_progress.prefix and session.upload_progress.name INI
options. The key is typically retrieved by reading these INI settings,
i.e.

It is also possible to cancel the currently in-progress file upload,
by setting the $_SESSION[$key]["cancel_upload"] key to TRUE. When
uploading multiple files in the same request, this will only cancel
the currently in-progress file upload, and pending file uploads, but
will not remove successfully completed uploads. When a upload is
cancelled like this, the error key in $_FILES array will be set to
UPLOAD_ERR_EXTENSION.

The session.upload_progress.freq and session.upload_progress.min_freq
INI options control how frequent the upload progress information
should be recalculated. With a reasonable amount for these two
settings, the overhead of this feature is almost non-existent.

Thanks,
Mac

On Wed, Dec 14, 2011 at 12:28 PM, Wade Preston Shearer
<[email protected]> wrote:
> I've heard that PHP 5.4 supports this. Mac, want to chime in?
>
>
> On 8 Dec 2011, at 16:03, Brian J. Rogers wrote:
>
>> I'm trying to learn how this is done so I don't have to rely on jQuery 
>> plugins so much. I know some work without requiring anything but the core of 
>> PHP. I also believe there is a pear package to assist with this, but I'm 
>> hoping to find if it is possible to do with just the core and not require a 
>> ton of javascript, but I know I will need some.
>>
>> Anyone know about it or a good resource?
>>
>>
>> _______________________________________________
>>
>> UPHPU mailing list
>> [email protected]
>> http://uphpu.org/mailman/listinfo/uphpu
>> IRC: #uphpu on irc.freenode.net
>
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net



-- 
Mac Newbold
[email protected]
801-694-6334

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to