files.remove(Number) Method HTML5/Flash Uploader JavaScript

Supported technologies: Adobe FlashHTML 5

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

Syntax

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

Parameters

index

Type: Number

Depending on the type of this argument, it may be:

  • if number - a zero-based index of the file to remove (position in the upload list). Note, if you remove files in a cycle, the index may be shifted after you remove a file!
  • if string - the file's guid (returned by guid).
  • if array - an array of indexes or guids.

See Also

Reference