获取dropzone中选定文件的数量 [英] Get count of selected files in dropzone
本文介绍了获取dropzone中选定文件的数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想做的是在上传文件之前,先在dropzone中获取所选文件的数量.
What I m trying to do is get a count of selected files in dropzone before upload them.
var count= myDropzoneNST.getAcceptedFiles().length;
我可以使用此行来获取上载文件的数量,但是我想做的是在上传选定的有效文件之前先获取它们的数量.
I can get a count of uploaded files using this line, but What I m trying to do is to get count of selected valid files before upload them.
推荐答案
var count= myDropzoneNST.files.length;
将为您提供放置区中的文件总数.
will give you the total number of files in your dropzone.
这篇关于获取dropzone中选定文件的数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文