如何修复webkit-fake-url呢? [英] How to fix webkit-fake-url mean?

查看:162
本文介绍了如何修复webkit-fake-url呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您尝试复制并粘贴到Safari网络浏览器时,浏览器会插入 webkit-fake-url

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

在Chrome中,您可以在剪贴板数据上执行 getAsFile()来读取图像。你可以用Safari做类似的事情吗?

In Chrome, you could do getAsFile() on the clipboard data to read the image. Can you do something like that with Safari?

推荐答案

不,目前在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).

这篇关于如何修复webkit-fake-url呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆