admin管理员组文章数量:1415476
When dragging and dropping a large number of files, event.dataTransfer.items contains only 100.
If I download >100 files, items = 100. How can I fix it? Need all files and is not directory.
const dropZone = document.getElementById('dropZone');
dropZone.addEventListener('drop', async (event) => {
event.preventDefault();
dropZone.classList.remove('dragover');
const items = event.dataTransfer.items;
console.log(items)
})
.drop-zone {
border: 1px solid black;
}
<div id="dropZone" class="drop-zone">
<p>Drag your image directory here</p>
</div>
本文标签:
版权声明:本文标题:javascript - When dragging and dropping a large number of files, event.dataTransfer.items contains only 100 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745215627a2648148.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论