Bug #71293 [Opn->Fbk]: File upload is not cancelled using session.upload_progress

From: Date: Thu, 24 Jun 2021 14:18:32 +0000
Subject: Bug #71293 [Opn->Fbk]: File upload is not cancelled using session.upload_progress
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234615@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71293&edit=1

 ID:                 71293
 Updated by:         cmb@php.net
 Reported by:        pfenderd at bellsouth dot net
 Summary:            File upload is not cancelled using
                     session.upload_progress
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Session related
 Operating System:   Windows 7
 PHP Version:        7.0.1
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Which SAPI and Webserver are (were) you using?  At least for FCGI
the upload progress features won't properly work, if the Webserver
buffers the request.


Previous Comments:
------------------------------------------------------------------------
[2016-02-19 05:13:35] pfenderd at bellsouth dot net

I added a link for files to demonstrate the problem.

------------------------------------------------------------------------
[2016-01-17 22:18:55] pfenderd at bellsouth dot net

To demonstrate the problem, I have made available a set of 4 files that can be downloaded from http://upz.djpnet.dyndns.org/upz.zip

This problem cannot be explained with just a short piece of code.

------------------------------------------------------------------------
[2016-01-17 04:22:33] php-bugs at lists dot php dot net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.

------------------------------------------------------------------------
[2016-01-07 07:11:22] ab@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------
[2016-01-05 23:24:20] pfenderd at bellsouth dot net

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 this bug report at https://bugs.php.net/bug.php?id=71293&edit=1


Thread (8 messages)

« previous php.bugs (#234615) next »