Web application access user's file system

前端 未结 4 1640
时光说笑
时光说笑 2020-12-03 18:18

I am creating a web application for my client. The application will be installed on a dedicated server within corporate network. He wants to see the list of his local files

4条回答
  •  青春惊慌失措
    2020-12-03 19:04

    Finally I did a compilation of some quotations and it is done..

    https://en.wikipedia.org/wiki/JavaScript#Security

    scripts run in a sandbox in which they can only perform Web-related actions, not general-purpose programming tasks like creating files

    https://www.us-cert.gov/publications/securing-your-web-browser

    JavaScript, also known as ECMAScript, is a scripting language that is used to make websites more interactive. There are specifications in the JavaScript standard that restrict certain features such as accessing local files.

    https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Introduction#restrictions

    Because the file system is sandboxed, a web app cannot access another app's files. You also cannot read or write files to an arbitrary folder (for example, My Pictures and My Documents) on the user's hard drive.

提交回复
热议问题