Web application access user's file system

前端 未结 4 1631
时光说笑
时光说笑 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 18:50

    Maybe this document rocks?

    http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#security-considerations

    Section 4.1

    An application can request temporary or persistent storage space. Temporary storage may be easier to get, at the UA's discretion [looser quota restrictions, available without prompting the user], but the data stored there may be deleted at the UA's convenience, e.g. to deal with a shortage of disk space.

    Conversely, once persistent storage has been granted, data stored there by the application should not be deleted by the UA without user intervention. The application may of course delete it at will. The UA should require permission from the user before granting persistent storage space to the application.

    This API specifies the standard origin isolation in a filesystem context, along with persistence of data across invocations. Applications will likely use temporary storage for caching, and if it's still around from a previous session, it is often useful. Persistent data, on the other hand, is useless if you can't access it again the next time you're invoked. However, even persistent data may be deleted manually by the user [either through the UA or via direct filesystem operations].

提交回复
热议问题