Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何从web浏览器打开文件夹浏览_Html_Ruby On Rails - Fatal编程技术网

Html 如何从web浏览器打开文件夹浏览

Html 如何从web浏览器打开文件夹浏览,html,ruby-on-rails,Html,Ruby On Rails,我是RoR的使用者,我的英语不好 在我的web应用程序中,只要单击链接,我就想在explore(windows)或finder(mac)中打开特定文件夹 如何做到这一点 我试过了,但没有达到预期效果 我用哈姆语写的 %a{href: "file:///c:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here! %a{href: "file://localhost/c|¥SAMPLE¥Sample_bar.png", target: "_bla

我是RoR的使用者,我的英语不好

在我的web应用程序中,只要单击链接,我就想在explore(windows)或finder(mac)中打开特定文件夹

如何做到这一点

我试过了,但没有达到预期效果

我用哈姆语写的

%a{href: "file:///c:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/c|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file:///c|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/c:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!

%a{href: "file:///C:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/C|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file:///C|¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!
%a{href: "file://localhost/C:¥SAMPLE¥Sample_bar.png", target: "_blank"} click here!

您能帮我吗?

使用
文件\u字段
标记,并为表单使用
多部分
html选项