I'm trying to make file calculator with "afterFileSelect" - and is working if i don't use "STRING". Adding comma between STRING and afterFileSelect won't help. Also making two seperate MultiFile-functions won't work.
Anyone have solution for this?
My function:
$(function(){$('input#addWorkFileUpload').MultiFile({
max: 10,
accept: 'gif|jpg|png',
STRING: {
remove:'Poista',
selected:'Valittu: $file',
denied:'Tiedostomuotoa ei tueta ($ext)'
}
afterFileSelect:function(element,value,master) {
var filesCount = $('#addWorkFileUpload_wrap_labels div').size();
$("#FileInputsCounter").text(filesCount); // Add +1 to calculator
}
}); });