Edit report at https://bugs.php.net/bug.php?id=62535&edit=1

 ID:                 62535
 Updated by:         ar...@php.net
 Reported by:        danny at tibibi dot com
 Summary:            $_SESSION[$key]["cancel_upload"] doesn't work as
                     documented
 Status:             Closed
 Type:               Bug
 Package:            Session related
 Operating System:   Windows Server 2008
 PHP Version:        5.4.4
-Assigned To:        
+Assigned To:        arpad
 Block user comment: N
 Private report:     N

 New Comment:

Regarding stopping the request entirely, we have to wait until the request is 
finished (and continue to process it in case there's more form data) before 
sending the response so that's not possible.


Previous Comments:
------------------------------------------------------------------------
[2013-06-27 18:25:42] ar...@php.net

Automatic comment on behalf of array...@gmail.com
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=ce8c023910562e84d5e00825a1e784174bcb3f1b
Log: Fix bug #62535 - $_SESSION[$key]["cancel_upload"] doesn't work 
as documented

------------------------------------------------------------------------
[2012-07-11 16:56:21] danny at tibibi dot com

Description:
------------
The documentation - http://us3.php.net/manual/en/session.upload-progress.php 
-for the Session Upload Progress feature says that if you set 
$_SESSION[$key]["cancel_upload"] to TRUE, then it will cancel the current file 
being processed, and all pending files.

This is not what I am experiencing. Instead, it cancels the current file, but 
the pending files still go through, unless you set 
$_SESSION[$key]["cancel_upload"] to TRUE again and again at the time that each 
file is being processed.

Also, what I understood from the documentation is that if you set 
$_SESSION[$key]["cancel_upload"] to TRUE, then it stops the current file and 
all pending files, therefore stopping the request from processing any further. 
I'm not sure if I'm right in assuming this, but it is definitely not the case. 
Instead, the complete request finishes (this could be long if the files are 
large), and then the $_FILES array has its error set to UPLOAD_ERR_EXTENSION 
for all files that were canceled.

It would be nice if setting $_SESSION[$key]["cancel_upload"] to TRUE actually 
stopped the request entirely from being processed any further, so this way it 
could save the user from waiting long periods of time for nothing.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62535&edit=1

Reply via email to