|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-06-25 11:32 UTC] vincentmartineau at free dot fr
Description:
------------
$fileInformation = apc_fetch('upload_'.$_POST['keyFile']);
echo $fileInformation['done'];
value from $fileInformation['done'] is always 0 as
$fileInformation['current'] return the corect value
So to know if the upload is complete, we need to compare
$fileInformation['current'] against $fileInformation['total']
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 02:00:01 2025 UTC |
Could you try the following patch against apc-trunk: Index: apc_rfc1867.c =================================================================== --- apc_rfc1867.c (revision 301754) +++ apc_rfc1867.c (working copy) @@ -187,7 +187,7 @@ add_assoc_string(track, "name", RFC1867_DATA(name), 1); add_assoc_string(track, "temp_filename", RFC1867_DATA(temp_filename), 1); add_assoc_long(track, "cancel_upload", RFC1867_DATA(cancel_upload)); - add_assoc_long(track, "done", 0); + add_assoc_long(track, "done", 1); add_assoc_double(track, "start_time", RFC1867_DATA(start_time)); _apc_store(RFC1867_DATA(tracking_key), RFC1867_DATA(key_length), track, APCG(rfc1867_ttl), 0 TSRMLS_CC); zval_ptr_dtor(&track);