This documentation is for the old version. Go to the latest Upload Suite docs

file.type Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets a type of the user-selected file.

Syntax

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

Property Value

Type: String

The type of this file.

Remarks

Note

Do not confuse this property with format. The file type returned by this property is retrieved from system (determined via the file extension). This is the same string which is displayed in the Type column of the Details view. At the same time, file format is determined with Image Uploader by analyzing file content (rather than the file extension).