How to fix webkit-fake-url?

When you try to copy and paste into a Safari browser, the browser inserts webkit-fake-url.

In Chrome, you can do getAsFile()in the clipboard data to read the image. Can you do something similar with Safari?

+5
source share
1 answer

No, at the moment it is not possible to access the contents of the pasted file in Safari.

As a workaround, you can detect this faux protocol and display a message to the user, letting them know that it doesn’t work when using its specific browser (and possibly shows the usual download control).

+4
source

All Articles