file.format Property ActiveX/Java Uploader JavaScript

Supported browsers: Internet Explorer

Gets a file format of the user-selected file.

Syntax

JavaScript Get/Set Value at Runtime
value = $au.uploader('uploaderID').files().get(index).format();

Property Value

Type: String

The format of this file. The following values are supported:

UnknownUnknown file format.
JPEGJPEG file format.
BMPBMP file format.
PNGPNG file format.
PCXPCX file format.
WBMPWBMP file format.
GIFGIF file format.
PSDPSD file format.

Remarks

Note

Do not confuse this property with type. File format returned through this property is determined with ActiveX Uploader by analyzing file content (rather than the file extension). In the same time the file type is retrieved from system (determined via the file extension).