Most of the advice I see says to use the following configuration value for session.upload_progress data
session.upload_progress.cleanup=on
From what I can see the result of this approach is that $_SESSION["upload progress key"]
is erased immediately on completion of the upload, effectively wiping out all the data related to the completed file upload.
As one is running a separate XHR process to poll this data and display a progress bar, if the file being uploaded is very small, it is conceivable that the separate XHR thread only polls after the file upload has completed and the data has been removed.
I have 2 questions for proponents of the instantaneous deletion of data on completion of upload approach:
Alternatively, is there no reliable way to achieve either/both of the above and would a better approach be to use
session.upload_progress.cleanup=off
and interrogate the upload data on completion, then manually manage cleanup of session data?