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

files.remove(Number) Method

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Removes the file at the specified index from the upload pane.

Syntax

JavaScript
$au.uploader('uploaderID').files().remove(index);

Parameters

index

Type: Number

The zero-based index of the file to remove.

Remarks

If you want to remove all files or all selected files from the upload pane use the uploadPane.removeAllFiles() or uploadPane.removeSelectedFiles() method respectively.