[英]How does Dropbox Open button work?
In February 2015 Dropbox released a new feature that allowed you to trigger the local opening of a file from their web interface: https://blogs.dropbox.com/dropbox/2015/02/new-way-to-open-dropbox-files/ 2015年2月,Dropbox发布了一项新功能,允许您从其Web界面触发文件的本地打开: https : //blogs.dropbox.com/dropbox/2015/02/new-way-to-open-dropbox-文件/
More information is here: 更多信息在这里:
Here is an example of the Open button visible from the context menu: 以下是从上下文菜单中可见的“打开”按钮的示例:
And here is the brief display of the popup that is apparently connecting to the sync client: 以下是显示连接到同步客户端的弹出窗口的简要显示:
It's clear that the Dropbox sync client must be installed, so you have some native local code running, which allows for some fancy stuff that would be impossible with just in-browser Javascript, but somehow the browser page is able to do some unexpected things: 很明显,必须安装Dropbox同步客户端,因此您运行了一些原生本地代码,这允许一些花哨的东西,只有浏览器内的Javascript是不可能的,但不知何故浏览器页面能够做一些意想不到的事情:
By what technical mechanism do these two things work? 这两件事通过什么技术机制起作用?
This is just a guess, but probably something like this: 这只是猜测,但可能是这样的:
open [path]
shell command. open [path]
shell命令。 Nothing fancy in the browser. 浏览器没什么特别的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.