Jquery multiple file upload with ajax.
option : { limitMultiFileUploads : 3 }
is not working for jquery file upload.
This is what i did :
$(function() { $('#attachUpload').fileupload({ dataType: 'json', limitConcurrentUploads: 1, option: { maxFileSize: 40000, maxNumberOfFiles: 2 }, start: function(e) { $('.btn-sent').unbind('click'); // important - remove all event handlers }, done: function(e, data) { var data = $.parseJSON(data._response.jqXHR.responseText); doneflag--; if (doneflag == 0) { $('#frmCompose').submit(); } }, submit: function(e, data) { data.formData = setFormData(); }, add: function(e, data) { } });
but filesize limit and number of files limit not working can anyone help please.