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

file.width Property

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Gets a width of the user-selected file.

Syntax

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

Property Value

Type: Number

The width of this file (in pixels) if it is an image; otherwise, 0 is returned.