我是RoR的用户,我不擅长英语。
在我的网络应用程序中,我想在浏览(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!
你会帮我吗?
答案 0 :(得分:0)
使用file_field
标记,表单为multipart
html选项