rfc:session_upload_progress
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:session_upload_progress [2008/09/17 17:27] – cancel_upload lbarnaud | rfc:session_upload_progress [2010/01/08 21:11] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 20: | Line 20: | ||
Using the session extension for this purpose also allows to use the different storage backends available. | Using the session extension for this purpose also allows to use the different storage backends available. | ||
- | The patch comes with 4 ini settings, working just like APC's ones: | + | The patch comes with some ini settings, working just like APC's ones: |
* session.upload_progress.enabled[=1] | * session.upload_progress.enabled[=1] | ||
Line 26: | Line 26: | ||
* session.upload_progress.name[=PHP_SESSION_UPLOAD_PROGRESS] | * session.upload_progress.name[=PHP_SESSION_UPLOAD_PROGRESS] | ||
* session.upload_progress.freq[=1%] | * session.upload_progress.freq[=1%] | ||
+ | * session.upload_progress.min_freq[=0.0] | ||
When session.upload_progress.enabled is set to 1, and $_POST[session.upload_progress.name] is set and non-empty, upload informations are stored in $_SESSION[session.upload_progress.prefix . $_POST[session.upload_progress.name]]. | When session.upload_progress.enabled is set to 1, and $_POST[session.upload_progress.name] is set and non-empty, upload informations are stored in $_SESSION[session.upload_progress.prefix . $_POST[session.upload_progress.name]]. | ||
Line 33: | Line 34: | ||
The session.upload_progress.prefix is used to avoid conflicts with existing session vars. | The session.upload_progress.prefix is used to avoid conflicts with existing session vars. | ||
- | The session.upload_progress.freq | + | The session.upload_progress.freq |
The patch also allows to follow multiple files in the same request. Each file will have its own $_FILES-like array with name, tmp_name, error, bytes processed, etc. | The patch also allows to follow multiple files in the same request. Each file will have its own $_FILES-like array with name, tmp_name, error, bytes processed, etc. | ||
Line 83: | Line 84: | ||
The current patch also allows to cancel an upload by setting the " | The current patch also allows to cancel an upload by setting the " | ||
- | Doing so will cancel the currently uploading file, bypass all remaining data (POST variables, uploads, etc), and start to execute the script. | + | Doing so will cancel the currently uploading file, bypass all remaining data (POST variables, uploads, etc). An upload canceled this way will have " |
rfc/session_upload_progress.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1