Modules | |
| FTP settings | |
| These variables control FTP upload. | |
| HTTP POST settings | |
| These variables control HTTP POSTing. | |
| Redirection settings | |
| These variables control redirection after the upload. | |
Variables | |
| var | upload_mode |
| Mode [number]. | |
| var | upload_sub_domain |
| Subdomain [string]. | |
| var | upload_next_page_error |
| Redirect url for users after uploads fail [string]. | |
| var | upload_max_attempts |
| Max upload attempts [string]. | |
| var upload_mode |
Controls mode used for file uploading.
For FTP uploading, set upload_mode to kUploadModeFtp.
var upload_mode = "kUploadModeFtp";
For upload via HTTP Form POST, set upload_mode to kUploadModeHttpFormPost.
var upload_mode = "kUploadModeHttpFormPost";
For upload via HTTP binary application/octet-stream POST, set upload_mode to kUploadModeHttpBinPost.
var upload_mode = "kUploadModeHttpFormPost";
Your Publisher plugins are configured to work only with pages served from your domain. If you would like to store uploaded files at a URL that includes a subdomain, enter the subdomain name here. Leave this value empty ("") if you are not using a subdomain.
// Ordinary domain: http://example.com/ var upload_sub_domain = "";
// Subdomain: http://movies.example.com/ var upload_sub_domain = "movies";
If the length of the upload_next_page_error string is non-zero, the user's browser will be directed to upload_next_page_error via a document.location = upload_next_page_error;
Upload will be attempted upload_max_attempts times before the user is informed of failure.