Start Upload all in jquery file upload blueimp

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

I use jQuery file upload blueimp and have read

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


        
3条回答
  •  有刺的猬
    2021-01-02 03:03

    var pendingList: [];
    
    var sendAll: function () {
            pendingList.forEach(function (data) { data.submit(); });
            pendingList = [];
        };
    
    $('#fileupload').fileupload({
        url: 'url_path',
        autoUpload: false,
    
        add: function (e, data) {
                pendingList.push(data);
            },
    
    
    });
    
    
    

提交回复
热议问题