javascript - How to fix webkit-fake-url mean? - Stack Overflow

When you try to copy and paste to Safari web browser the browser inserts webkit-fake-url.In Chrome, you

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?

Share Improve this question edited Feb 4, 2013 at 6:27 alex 491k204 gold badges889 silver badges991 bronze badges asked Feb 4, 2013 at 5:20 SamFisher83SamFisher83 4,0159 gold badges41 silver badges53 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745420124a4626926.html

相关推荐

  • javascript - How to fix webkit-fake-url mean? - Stack Overflow

    When you try to copy and paste to Safari web browser the browser inserts webkit-fake-url.In Chrome, you

    6小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信