Reputation: 1079
does anyone know how to change from single select file (to upload) to multiple upload file? I'm using MultiFile.js. Can this library used for multiple selected file? Since I did multiple at my HTML, but still when I choose more than 1 file, it's only display 1st file name and not all files selected. Is there any possibility that I can loop through my jquery code or whatsoever?
Here is the jquery that i'm using
$(function(){ // wait for document to load
$('#picture').MultiFile({
STRING: {
remove: '<img src="images/bin.gif" height="16" width="16" alt="x"/>'
}
});
});
And here my HTML
<input type="file" name="picture[]" id="picture" multiple>
Upvotes: 0
Views: 1236
Reputation: 2378
MultiFile use maxlength property of the input tag to define number of files to upload and the class must be multi.
ex :
<input type="file" class="multi" maxlength="2"/>
Upvotes: 1