---
title: "Configuring Common Upload Settings in ActiveX/Java Uploader"
canonical: https://www.aurigma.com/docs/us8/configuring-common-upload-settings-iu.htm
product: "Upload Suite 8"
---

# Configuring Common Upload Settings in ActiveX/Java Uploader
 
ActiveX/Java Uploader is a client-side application which does not save files on server disk. It simply submits user-selected files to a page specified in its settings and redirects users to another page when the upload is completed. The present topic describes how to specify a page to which ActiveX/Java Uploader submits files and a page where ActiveX/Java Uploader redirects users when upload is successfully completed.

Besides these URLs, ActiveX/Java Uploader allows to specify:

- [What and how many converted files](https://www.aurigma.com/docs/us8/configuring-files-to-be-uploaded-iu.htm.md) should be sent for each user-selected file.
- Whether to send [all files at once or separate them into several parts](https://www.aurigma.com/docs/us8/sending-all-files-at-once-or-in-several-parts.htm.md).
- How many times and in what intervals [ActiveX/Java Uploader should try to resume a broken upload](https://www.aurigma.com/docs/us8/configuring-fail-safe-upload.htm.md).
- How to [rename default POST fields or prohibit them from submitting](https://www.aurigma.com/docs/us8/configuring-post-format.htm.md).
- What control (Java or ActiveX) ActiveX/Java Uploader should utilize.

## Upload Settings
 
All the upload-related parameters can be configured via the UploadSettings[UploadSettings (ASP.NET)](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Uploader_UploadSettings.htm.md)[UploadSettings (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_Uploader_UploadSettings.htm.md)[uploadSettings (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_uploader_uploadSettings.htm.md) property of the Uploader[Uploader (ASP.NET)](https://www.aurigma.com/docs/us8/JA_T_Aurigma_ImageUploader_Uploader.htm.md)[Uploader (PHP)](https://www.aurigma.com/docs/us8/JA_T_P_Uploader.htm.md)[uploader (JavaScript)](https://www.aurigma.com/docs/us8/JA_T_J_$au_uploader.htm.md) class. Here the upload page is specified with the ActionUrl[ActionUrl (ASP.NET)](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_UploadSettings_ActionUrl.htm.md)[ActionUrl (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_UploadSettings_ActionUrl.htm.md)[actionUrl (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_uploadSettings_actionUrl.htm.md) property, and the redirection page is specified with RedirectUrl[RedirectUrl (ASP.NET)](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_UploadSettings_RedirectUrl.htm.md)[RedirectUrl (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_UploadSettings_RedirectUrl.htm.md)[redirectUrl (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_uploadSettings_redirectUrl.htm.md).
 ```aspx-cs
<aur:Uploader ID="Uploader1" runat="server">
    <UploadSettings ActionUrl="upload.aspx" 
        RedirectUrl="gallery.aspx" />
</aur:Uploader>
``` ```
$uploader = new Uploader("Uploader1");
$uploader->getUploadSettings()->setActionUrl("upload.php");
$uploader->getUploadSettings()->setRedirectUrl("gallery.php");
``` ```
var u = $au.uploader({
    id: 'Uploader1',
    uploadSettings: { actionUrl: 'upload.aspx', redirectUrl: 'gallery.aspx' }
});
``` 
The **ActionUrl** specifies a URL to the page where files are posted. That page should contain the server code which parses the upload request, saves files to the necessary folders on server, and performs other additional actions. Usually, this URL must have a specific extension (depending on the web server settings). For ASP.NET platform it should be `.aspx`, for PHP it is `.php`, for Perl it can be `.pl` or `.cgi`, etc. In other words, the file containing this script should have the extension registered in the settings of your web server as a server page. Otherwise, upload would fail. If you want to submit files to the same page where ActiveX/Java Uploader is hosted, specify the dot character (`.`) as a value of this property.
 
When users upload files using the standard `<input type="file">` element, they expect to be redirected to the page where they have submitted the files. However, ActiveX/Java Uploader works in a different way. The response generated by the page, which is specified with the **ActionUrl** property, is sent back to ActiveX/Java Uploader and not to the browser. As soon as ActiveX/Java Uploader receives this response, the upload is considered completed; and the user is redirected to the page specified with the **RedirectUrl** property. If you do not need this redirection, set this property to an empty string.
 
When specifying these properties, take into account the following cases:
 
### Using Quotation Marks and Semicolons
 
URLs can contain semicolon or quotation mark characters (e.g. `http://upload.server.com/uploadFile;jsessionid=123?param='value'`). If they do, enclose such URLs in single (`' '`) or double (`" "`) quotes to avoid parameter parsing errors. Moreover, quotation marks (both single `'` and double `"`) inside URLs should be escaped with a backslash:
 
`"http://upload.server.com/uploadFile;jsessionid=123?param=\'value\'"`
 
### Using Absolute and Relative URLs
 
URLs can be both absolute (e.g. `"http://domain.com/Gallery/gallery.aspx"`) and relative to the current page (e.g. `"/Gallery/gallery.aspx"`).
 
For instance, if ActiveX/Java Uploader is inserted into the `http://domain.com/ImageUploader/default.aspx` page, the relative URLs specified via the **RedirectUrl** property will correspond to the following locations.
 
|  Specified URL |  Expected Location |
| --- | --- |
 |  **`"/Gallery/gallery.aspx"`** |  `http://domain.com/Gallery/gallery.aspx` |
 |  **`"./Gallery/gallery.aspx"`** |  `http://domain.com/ImageUploader/Gallery/gallery.aspx` |
 |  **`"Gallery/gallery.aspx"`** |  `http://domain.com/ImageUploader/Gallery/gallery.aspx` |
 |  **`"gallery.aspx"`** |  `http://domain.com/ImageUploader/gallery.aspx` |

## Set Type of Control to Use
 
ActiveX/Java Uploader loads ActiveX control or Java applet depending on what browser is used on client side. ActiveX control will be loaded for Internet Explorer, and Java applet otherwise. You can customize this logic and set up ActiveX/Java Uploader to load Java applet in all browsers if you want to disable ActiveX for some reason; to perform this use the type[Type (ASP.NET)](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_BaseControl_Type.htm.md)[Type (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_Uploader_Type.htm.md)[type (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_uploader_type.htm.md) property.
 
The following sample configures ActiveX/Java Uploader to load Java applet for any browser.
 ```aspx-cs
<aur:Uploader ID="Uploader1" runat="server" Type="java" />
``` ```
var uploader = $au.uploader({
  id: 'Uploader1',
  type: 'java',
  //other parameters...
});
``` 
If you use ActiveX/Java Uploader PHP you can set the **type** property inside the [PreRender](https://www.aurigma.com/docs/us8/JA_E_Uploader_PreRender.htm.md) event handler, like follows:
 ```
<script type="text/javascript">
    function Uploader1_PreRender(){
        $au.uploader('Uploader1').type('java');
    }
</script>
 
<?php
  require_once 'ImageUploaderPHP/Uploader.class.php';
  $uploader = new Uploader('Uploader1');
  $uploader->getClientEvents()->setPreRender("Uploader1_PreRender");
  //other parameters...
  $uploader.render();
?>
```

## See Also
 
### Reference
 
- UploadSettings Class[UploadSettings (ASP.NET)](https://www.aurigma.com/docs/us8/JA_T_Aurigma_ImageUploader_UploadSettings.htm.md)[UploadSettings (PHP)](https://www.aurigma.com/docs/us8/JA_T_P_UploadSettings.htm.md)[uploadSettings (JavaScript)](https://www.aurigma.com/docs/us8/JA_T_J_$au_uploadSettings.htm.md)

### Manual
 
- [Configuring Files to be Uploaded in ActiveX/Java Uploader](https://www.aurigma.com/docs/us8/configuring-files-to-be-uploaded-iu.htm.md)
- [Sending All Files at Once or in Several Parts in ActiveX/Java Uploader](https://www.aurigma.com/docs/us8/sending-all-files-at-once-or-in-several-parts.htm.md)
- [Configuring Fail-safe Upload](https://www.aurigma.com/docs/us8/configuring-fail-safe-upload.htm.md)
- [Configuring POST Format](https://www.aurigma.com/docs/us8/configuring-post-format.htm.md)
