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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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 17:01:32 2024 UTC