Start Upload all in jquery file upload blueimp

前端 未结 3 1079
走了就别回头了
走了就别回头了 2021-01-02 02:14

I use jQuery file upload blueimp and have read

$(function () {
    $(\'#fileupload\').fileupload({
        dataType: \'json\',
        done: function (e, da         


        
3条回答
  •  旧时难觅i
    2021-01-02 03:00

    your problem is that you unbind the click event on every file. you should do it on done:

    done: function (e, data) {
                $("#uploadBtn").off('click')
                $.each(data.result, function (index, file) {
                    $('

    ').text(file.name).appendTo(document.body); }); }, add: function (e, data) { $("#uploadBtn").on('click',function () { data.submit(); }); }

提交回复
热议问题