【问题标题】:How to open folder explore from web browser如何从网络浏览器打开文件夹资源管理器
【发布时间】:2013-11-14 03:33:55
【问题描述】:

我是RoR的用户,但我的英语不太好。

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

如何做到这一点?

我尝试了这些,但它们没有按预期工作。

我用haml写的。

%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!

你会帮我吗?

【问题讨论】:

    标签: html ruby-on-rails


    【解决方案1】:

    使用file_field 标记,并为表单使用multipart html 选项

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-22
      • 2011-01-25
      • 1970-01-01
      • 1970-01-01
      • 2013-08-11
      相关资源
      最近更新 更多