开发者

Getting the file path of a uploaded file on the users disk in IE/Firefox

开发者 https://www.devze.com 2023-02-18 12:02 出处:网络
For a website I am working on, I need to allow users to be able to specify the path to a file on a network drive, so I simply tried using a file field and having javascript get the value, however beca

For a website I am working on, I need to allow users to be able to specify the path to a file on a network drive, so I simply tried using a file field and having javascript get the value, however because of browser security I cannot get this path.

Is there anyway to get around this browser security and allow users to browse to the file on the network drive and select it to specify the p开发者_如何学JAVAath?

Thanks, Alex.


AFAIK this is impossible with javascript. Flash also forbids from accessing the client file paths. ActiveX could be used but it will work only in IE and must be installed on the client computer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号