1

I cannot get dropped folder information, in Firefox 48, Windows 10. event.dataTransfer.files.length is 0, when I drop folder. It works fine when I drop file.

If you know a recommended method to get dropped folder information, I wish to know it.

You can reproduce it in https://jsfiddle.net/0GiS0/4ZYq3/.

sapics
  • 1,104
  • 8
  • 22
  • 1
    Do not believe this is possible using `.dataTransfer.files` or `.dataTransfer.getFilesAndDirectories()`, though should be possible using `` element with `allowdirs` attribute set at `html`. – guest271314 Sep 12 '16 at 06:08
  • Thank you very much! I did it with `` – sapics Sep 12 '16 at 10:12

1 Answers1

1

This was fixed in Firefox 50.

See: How to upload and list directories at firefox and chrome/chromium using change and drop events

This was fixed with Firefox 50, which added webkitGetAsEntry support (changelog).

nh2
  • 24,526
  • 11
  • 79
  • 128