jQuery.MultiFile is a plugin for jQuery to help users easily select multiple files for upload in a concise quick and easy manner.
Please refer to latest version of this script
Version: 1.1 | Download | Discussion Forum | Blog
Added file extension validation.
class="multi accept-jpg|gif|png"
Added events easier customization, triggered in the following order.
Just add jQuery and the jQuery Multiple File Upload plugin to the head section of your page.
Full version, with useless comments: jQuery Multiple File Upload
Compressed version, only 2.54kb: jQuery Multiple File Upload Compressed
jQuery: See jQuery's Official Website
Just add multi
to the class property of your file input element
and the script will do the rest.
Add limit-99 or max-99
to the class property of your file input element
to set the maximum number of files that can be selected.
Add accept-ext1|ext2|ext3
to the class property of your file input element
to limit allowed extensions.
Add debug
to the class property of your file input element
to see it working in debug mode.
Default usage:
$(function(){ $.MultiFile(); });
Using your own selectors:
$(function(){ $('#MyFileUpload').MultiFile(); });
Setting limit via script:
$(function(){ $('#MyFileUpload').MultiFile(5 /*limit will be set to 5*/); });
Using events:
$(function(){
$.MultiFile({
afterFileSelect:function(element,value,master){
alert('File selected:\n'+value);
}
});
});
Not sure... you tell me
Please post suggestions and feedback in the Discussion Forum