Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix webkit-fake-url mean?

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?

like image 672
SamFisher83 Avatar asked Oct 06 '22 03:10

SamFisher83


1 Answers

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

like image 113
alex Avatar answered Oct 26 '22 12:10

alex