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

file.horizontalResolution Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets a horizontal resolution of the user-selected file.

Syntax

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

Property Value

Type: Number

The horizontal resolution of this file (in DPI) if it is an image; otherwise, 0 is returned.