dropzone js onclick submit file upload

前端 未结 5 1586
时光说笑
时光说笑 2020-12-24 02:11

upload all files with a single button click.
HTML:

5条回答
  •  天命终不由人
    2020-12-24 02:38

    use simple code

    Dropzone.autoDiscover = false;
    
    var myDropzone = new Dropzone(element, {
      url: "/upload.php",                        
      autoProcessQueue: false,
    });
    
    $('#imgsubbutt').click(function(){           
      myDropzone.processQueue();
    });
    

提交回复
热议问题