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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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).