javascript - When dragging and dropping a large number of files, event.dataTransfer.items contains only 100 - Stack Overflow

When dragging and dropping a large number of files, event.dataTransfer.items contains only 100.If I do

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>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745215627a4617002.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信