Action property specifies URL of server upload script processing uploaded files. There are two ways to specify this URL: absolute and relative.
Suppose, we have the page
http://www.aurigma.com/ImageUploaderSample/default.aspx containing Image Uploader.
Let us see how to specify the URL to upload script upload.aspx using different ways:
- Absolute path
Using this way you need to pass full URL to upload.aspx script via Action property:
iu.addParam("Action", "http://www.aurigma.com/ImageUploaderSample/upload.aspx"); - Relative path
a. If you specify the path to upload.aspx using this way:
iu.addParam("Action", "/upload/upload.aspx");
It means that upload.aspx will be requested by URL: http://www.aurigma.com/upload/upload.aspx.
b. If you use this method:
iu.addParam("Action", "./upload/upload.aspx");
So your upload script will be: http://www.aurigma.com/ImageUploaderSample/upload/upload.aspx.
c. In this case:
iu.addParam("Action", "upload/upload.aspx");
You can find upload.aspx on server by this URL: http://www.aurigma.com/ImageUploaderSample/upload/upload.aspx.
d. If you point the path to upload.aspx like this one:
iu.addParam("Action", "upload.aspx");
It means that your upload.aspx file is here: http://www.aurigma.com/ImageUploaderSample/upload.aspx.
You can get more information about Action property in this article:
Action property.
Aurigma Support Team
Follow Aurigma on Twitter!