Search code examples
javascriptfirefoxdrag-and-drop

Cannot get dropped folder information in FIrefox 48


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/.


Solution

  • 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).