Find the path of a local file or directory in javascript

后端 未结 1 592
说谎
说谎 2021-01-23 10:13

We are building a web application to help people organize their local files; it has a text input field in HTML5/JS.

Ideal functionality: user clicks on the text

相关标签:
1条回答
  • 2021-01-23 11:09

    Due to browser security, you cannot get the file location from a FILE input. For that same reason, you will notice that FILE inputs always get reset to blank after a postback. This is because the browser will not persist or expose the file path as a security measure.

    0 讨论(0)
提交回复
热议问题