PHP :: Request #58954 :: Status of completed files
| Request #58954 | Status of completed files | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2009-11-17 23:08 UTC | Modified: | 2020-01-26 01:02 UTC |
|
||||||
| 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 | |||||||
[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 commits
[2009-11-23 11:20 UTC] chregu@php.net
[2017-10-24 09:01 UTC] kalle@php.net
-Status: Open +Status: Suspended
[2017-10-24 09:01 UTC] kalle@php.net
[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