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?
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With