Filecounter

View: New views
1 Messages — Rating Filter:   Alert me  

Filecounter

by Mikael Korpela :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
        }
 }); });