Aurigma Image Uploader 6.5 Dual
URL of the page to which files selected for upload in Image Uploader are sent to.
Get/Set Value in Runtime
getImageUploader("ImageUploaderID").setAction(value); value = getImageUploader("ImageUploaderID").getAction();
A string that specifies the URL to the page files are posted to. When specifying this value, take into account the following cases:
Uploading to Several URLs
You can specify several URLs in this property to upload files to several servers. In this case you should specify these URLs separated by a semicolon character (;):
Using Quotation Marks and Semicolons
URLs can contain semicolon or quotation mark characters (like this one: http://upload.server.com/uploadFile;jsessionid=123?param='value'). If so, to avoid parameter parsing errors enclose such URLs in single (' ') or double (" ") quotes. Additionally, quotation marks (both single ' and double ") inside URLs should be escaped with a backslash:
Uploading to the Same Page
If you want to submit files to the same page Image Uploader is hosted on, specify the dot character (.) as a value of this property.
Default value is ".".
Image Uploader is just an ActiveX control / Java applet which does not save files on server disk by itself. It just submits these files to a page specified by this URL (as a HTTP POST request in standard multipart/form-data format defined by RFC1867). That page should contain the server code which parses this POST request, saves files to necessary folders on server and performs any other additional actions.
Image Uploader SDK includes a number of code samples for different server platforms:
Using Absolute and Relative URLs
URLs can be both absolute (e.g. iu.addParam("Action", "http://domain.com/upload/upload.aspx")) and relative to the current page (e.g. iu.addParam("Action", "/upload/upload.aspx")).
For example, if Image Uploader is inserted to the http://domain.com/ImageUploader/default.aspx page, the relative URLs specified via this property will correspond to the following locations.
|Specified URL||Expected Location|
Uploading to Several URLs
If multiple URLs are specified, Image Uploader alternates them when submitting requests. E.g. if you specify three URLs and upload five files (each file in a separate package), the sequence will be the following:
- File 1 - URL 1
- File 2 - URL 2
- File 3 - URL 3
- File 4 - URL 1
- File 5 - URL 2
When a new upload session is started (i.e. the Send button is clicked again), the upload will begin from the URL which is next to the last one used (unless the user refreshes the page, of course). In the example discussed above, it will be URL 3.