How open a local file with the associated program from a web page?

前端 未结 6 1615
萌比男神i
萌比男神i 2021-01-23 23:25

I know the user of my app has a local file named c:\\sourcefile.cs, I need to find a way to render a link to that file so that when he clicks the link, it will open the file in

6条回答
  •  无人共我
    2021-01-23 23:48

    This is not possible because of security reasons. Javascript in the browser cannot access the clients computer.

    You would need to use a Java applet or something else like that to make that happen.

提交回复
热议问题