Functions | |
| function | get_upload_redirect_query_string (pub) |
| Redirection query string generation. | |
Variables | |
| var | upload_reload_on_success |
| Reload browser upon successful upload [bool]. | |
| var | upload_next_page_success |
| Redirect location for users after successful uploads [bool]. | |
| function get_upload_redirect_query_string | ( | pub | ) |
The string returned by this function will be used in the following manner:
query_str = get_upload_redirect_query_string(plugin_object); if (query_str.length > 0 && query_str.charAt(0) === "?") document.location = upload_next_page_success + query_str; else document.location = upload_next_page_success;
Set upload_reload_on_success to true to have the reference application reload the page when an upload is successful.
If the length of the upload_next_page_success string is non-zero, the user's browser will be directed to upload_next_page_success via a document.location = upload_next_page_success;