jQuery MultiFile - how to clear / reset?

eidylon picture eidylon · Dec 9, 2009 · Viewed 7.3k times · Source

I'm using the jQuery multi-file upload plugin found here:
http://www.fyneworks.com/jquery/multiple-file-upload/

I don't see in any of the examples though a way to "reset" the file-picker, clearing out any currently selected items.

Any one know how to do this? Thanks!

Answer

tvanfosson picture tvanfosson · Dec 9, 2009

From the documentation included in the download. Also noted on the Upload documentation page (scroll to bottom, under AJAX).

How do I reset the control?

To reset the file selections, just make the following call:

$('input:file').MultiFile('reset')