Bug #71293 [NEW]: File upload is not cancelled using session.upload_progress

From: Date: Tue, 05 Jan 2016 23:24:21 +0000
Subject: Bug #71293 [NEW]: File upload is not cancelled using session.upload_progress
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198441@lists.php.net to get a copy of this message
From:             pfenderd at bellsouth dot net
Operating system: Windows 7
PHP version:      7.0.1
Package:          Session related
Bug Type:         Bug
Bug description:File upload is not cancelled using session.upload_progress

Description:
------------
According to the PHP documentation about session.upload.progress, a file
upload can be cancelled by setting
$_SESSION[$key]["cancel_upload"] = TRUE;

As far as PHP session data is concerned, the upload was cancelled and
the data in $_FILES indicates that no file data is avaliable.

However, according to my network monitor the browser does not stop
sending the file.  It sends the entire file even though the transfer
should have stopped.  That means that the form processing cannot
continue to the next step until all the file data has been uploaded,
which could be several minutes for a large file.

Either this is a bug in the code that needs to be fixed or the
documentation should be fixed to say that the upload will not be stopped
but the file data will not be available because of the cancel request.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=71293&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71293&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71293&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71293&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71293&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71293&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71293&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71293&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71293&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71293&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71293&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71293&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71293&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71293&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71293&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71293&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71293&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71293&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71293&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71293&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71293&r=mysqlcfg



Thread (8 messages)

« previous php.bugs (#198441) next »