Bug #62535 [Opn->Csd]: $_SESSION[$key]["cancel_upload"] doesn't work as documented
| From: | arpad@php.net | Date: | Thu, 27 Jun 2013 18:25:43 +0000 |
| Subject: | Bug #62535 [Opn->Csd]: $_SESSION[$key]["cancel_upload"] doesn't work as documented | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179898@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62535&edit=1
ID: 62535
Updated by: arpad@php.net
Reported by: danny at tibibi dot com
Summary: $_SESSION[$key]["cancel_upload"] doesn't work as
documented
-Status: Open
+Status: Closed
Type: Bug
Package: Session related
Operating System: Windows Server 2008
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of arraypad@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
Previous Comments:
------------------------------------------------------------------------
[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