开发者

How to access and browse a network share via browser using javascript?

I'm helping a coworker to code an html page that has to display contents (documents) of a local network share. Html page will not be served by any web server, it will be just a plain html page on fi开发者_高级运维le system.

Does anyone know some Javascript libraries that let users browse the share, listing files and folders?


No, it doesn't exist. Same origin policy makes this problematic.

If such a javascript existed it would have to be served by the system and port that the file share was on. Which sounds like it defeats the point.

Now there is an index listing service built into most web servers that can list the contents of a web folder for a browser. There is also a similar capability in the browser for ftp.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜