开发者

html5 detect how many files being dropped?

开发者 https://www.devze.com 2023-01-06 05:11 出处:网络
Is it possible to detect how many files are being dropped using HTML5 drag/drop? I can detect the number of files using e.dataTransfer.files once the files have been dropped but the filesList is empty

Is it possible to detect how many files are being dropped using HTML5 drag/drop? I can detect the number of files using e.dataTransfer.files once the files have been dropped but the filesList is empty for ondragover &a开发者_运维知识库mp; ondragenter events.


You can try this :

e.dataTransfer.files.length

0

精彩评论

暂无评论...
验证码 换一张
取 消