views:

384

answers:

5

Hi all, 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!

A: 

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')

tvanfosson
Ah, thanks for that. I missed that at the bottom of the page down there. Unfortunately it doesn't seem to work... even though my selector does return items. Ah well, on to something else.
eidylon
A: 

Hey, I'm the developer of the plugin in question. Would you mind posting an URL with your code so I can take a look?

Diego
Hello Diego; I can't post you a link to the app, because it is an intranet app, developed for a government agency. However, I copied out the relevant files, and created a small sample reproducing the problem. To access this sample, please use the following url: http://www.box.net/shared/95ht0di9cj .
eidylon
Oh, in the little sample page, just click the button to run the code that should clear the inputs.
eidylon
A: 

Any solution on this issue? I'm with the same problem

cmedeiros
No, I wound up rolling my own jQuerified multi-upload thing.
eidylon
Hello cmedeiros. I uploaded my file, see the newly accepted answer. If you're still trying to get this working, maybe this will help you some. Cheers!
eidylon
A: 

having the same problem as well

$('input:file').MultiFile('reset') doesn't seem to do anything

Alejandro
Hello Alejandro. I uploaded my file, see the newly accepted answer. If you're still trying to get this working, maybe this will help you some. Cheers!
eidylon
A: 

For anyone interested, I uploaded my multi-file here. I wound up rolling my own, because I could not get this plug-in to work.

I had to cull a lot out of the file that was specific to the client, but the important stuff for the file upload should all be there. I did NOT include the upload library for parsing the form submission, just the client code for creating a multi-file upload UI, for what it is. It's all provided as is.

Hope it may help somebody!

eidylon