How to fix webkit-fake-url mean?

html, javascript, safari

Solution

Nope, it's impossible to access the pasted file's contents in Safari at the moment.

As a workaround, you can detect that faux protocol and display a message to the user informing them that it doesn't work when using their particular browser (and perhaps show a normal upload control).

Problem

When you try to copy and paste to Safari web browser the browser inserts `webkit-fake-url`. In Chrome, you could do `getAsFile()` on the clipboard data to read the image. Can you do something like that with Safari?

Original source