## Aurigma Image Uploader 7.0.35

# uploader.type Property

- Collapse All Sections
- Language Filter ( all languages )
- Supported browsers:

Gets or sets type of currently using Image Uploader control, Java applet or ActiveX control.

## Syntax

### JavaScript

### Initialize

    $au.uploader({
        //...other params...
        type: {},
        //...other params...
    })

### Get/Set Value at Runtime

    $au.uploader('uploaderID').type(value);
    value = $au.uploader('uploaderID').type();

### Property Value

Type: String

Type of currently using Image Uploader control.

Possible values are:

- java for Java applet
- activex for ActiveX control

You can use this property to utilize Java applet only in all browsers including Internet Explorer, although it is not recommended.

## Example

### JavaScript

    var uploader = $au.uploader({
      id: 'Uploader1',
      type: 'java',
      //other parameters...
    });

If you use Image Uploader PHP you can set the type property via the PreRender event, like follows:

### PHP

    <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();
    ?>