Jquery multifile - how to clear / reset?

I use the plugin to download multiple jQuery files found here:
http://www.fyneworks.com/jquery/multiple-file-upload/

I do not see in any of the examples, although the way to "reset" the file collector is to clear any selected items.

Does anyone know how to do this? Thank!

+3
source share
4 answers

For everyone who is interested, I have added a multi-file here . I finished my own because I could not get this plugin to work.

, , . , , . .

, -!

0

, . Upload ( , AJAX).

reset ?

reset , :

$. ( ': ') ( 'reset')

+5
$("input[type=file]").wrap("<div id='fileWrapper'/>");
$("#fileWrapper").append("<div id='duplicateFile' style='display:none'>"+$("#fileWrapper").html()+"</div>");
$("#fileWrapper").html($("#duplicateFile").html());
+1

.

$('.MultiFile-list').find('a').click();
-1

Source: https://habr.com/ru/post/1725226/


All Articles