php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58954 Status of completed files
Submitted: 2009-11-17 23:08 UTC Modified: 2020-01-26 01:02 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: r dot badding at gmail dot com Assigned: ramsey (profile)
Status: Assigned Package: uploadprogress (PECL)
PHP Version: 5.2.6 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: r dot badding at gmail dot com
New email:
PHP Version: OS:

 

 [2009-11-17 23:08 UTC] r dot badding at gmail dot com
Description:
------------
Sometimes the files are so small, or the net connection is 
so fast, that the file gets uploaded before any info can be 
retrieved from the progress module. In these cases the 
progress info will be null, and there is no way of knowing 
whether the file has been uploaded or it is still starting 
to getting uploaded.

Well, the above is not entirely true, When the file upload 
has ended, the upload script could indicate (with 
Javascript) that upload is done, but there are problems with 
that: output buffering:

"Several servers, especially on Win32, will still buffer the 
output from your script until it terminates before 
transmitting the results to the browser. " etc...

So. In order to get timely response about the status of the 
upload, it would be best to get the info from the progress 
meter: whether the file has been actually uploaded. 

A new flag (in the return data by uploadprogress_get_info) 
or something like that would do the job, I think. That wold 
mean that the temporary file would need to be preserved for 
a while, at least, and not deleted instantly.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-23 11:20 UTC] chregu@php.net
You're not the first one with this feature request. It needs some sort of Garbage Collection like eg. in the Session module. 

No idea, when and who's gonna implement this.
 [2017-10-24 09:01 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 09:01 UTC] kalle@php.net
This package has not had any releases for 6 years, so I'm gonna suspend it, any new maintainer that decides to pick this up can re-open this ticket.
 [2020-01-26 01:02 UTC] ramsey@php.net
-Status: Suspended +Status: Open -Assigned To: +Assigned To: ramsey
 [2022-11-26 05:40 UTC] kaminajshsg23 at gmail dot com
I am having a same bug I am still want to know more about.
 [2022-11-26 05:44 UTC] kaminsjabsri32 at gmail dot com
Thanks for sharing that. https://www.onecognizant.one/github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 22:01:28 2024 UTC