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?
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?
1 Answer
Reset to default 4Nope, 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).
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745420124a4626926.html
评论列表(0条)