Get count of selected files in dropzone

前端 未结 3 1489
南旧
南旧 2021-01-02 03:50

What I m trying to do is get a count of selected files in dropzone before upload them.

var count= myDropzoneNST.getAcceptedFiles().length;

3条回答
  •  独厮守ぢ
    2021-01-02 04:22

    var count= myDropzoneNST.files.length;
    

    will give you the total number of files in your dropzone.

提交回复
热议问题