Aurigma Image Uploader 6.1 Dual
ImageUploader.EnableFileViewer Property
Supported in: ActiveX Java

Switch that indicates whether to open the file in associated viewer software when it is double-clicked in both folder and upload pane.

# Syntax

##### Initialize

JavaScript | Copy Code
--- | ---
    <script type="text/javascript" src="iuembed.js"></script>
    <script type="text/javascript">
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...other params...
    iu.addParam("EnableFileViewer", "true");
    //...other params...
    iu.writeHtml();
    </script>

##### Get/Set Value in Runtime

JavaScript | Copy Code
--- | ---
    getImageUploader("ImageUploaderID").setEnableFileViewer(value);
    value = getImageUploader("ImageUploaderID").getEnableFileViewer();

##### Property Value

A boolean value (`true` or `false`). If `true`, the file is opened in the external file viewer by double-click. Otherwise, double-click causes nothing.

Default value is "true".

# Remarks

If subfolders are shown in folder pane (ShowSubfolders is `true`) double-clicking subfolders navigates to them regardless of EnableFileViewer and AllowFolderUpload properties.