feross/drag-drop

Broken in Chrome Version 49.0.2616.0 canary (64-bit)

LinusU opened this issue · 4 comments

example.html (and my own code) doesn't work in Chrome Version 49.0.2616.0 canary (64-bit). It seems like the entry.file callback never gets called.

Investigating more now...

FileError

  • code: 5
  • message: "A URI supplied to the API was malformed, or the resulting Data URL has exceeded the URL length limitations for Data URLs."
  • name: "EncodingError"

At first I was trying with a rather large image file, but trying with a shorter text file and even an empty file produces the same error.

The quest continues!

So it turns out that this error really means "Don't use the file://" protocol. I wasn't serving my html over http, but instead just opened the file in chrome. That apparently doesn't work...

Yep that's right. I'll add a note to the readme about that particular Chrome quirk.

Thank you!