WICG / file-system-access

Expose the file system on the user’s device, so Web apps can interoperate with the user’s native applications.
https://wicg.github.io/file-system-access/
Other
669 stars 66 forks source link

File Handles likely cannot be saved to disk #255

Closed dway123 closed 3 years ago

dway123 commented 3 years ago

The explainer mentions that

"An application could then choose to handle these files however it chose. For example, it could save the file handle to disk and create a URL to address the launched file, allowing users to navigate back to a file."

I believe the File System Access proposal doesn't allow for persistent file handles, but just want to confirm this before potentially removing this sentence from this explainer.

dway123 commented 3 years ago

@mkruisselbrink Is it true that FSA doesn't allow persistent file handles? I believe it's not supported for security reasons.

mkruisselbrink commented 3 years ago

That is not true. FSA lets you store file/directory handles in IndexedDB. Permission to use these is not persisted, so the website might have to prompt for access again after a reload/future navigation, but the handles themselves can be saved.

dway123 commented 3 years ago

Oops, thanks for the correction. I'll close this issue then, as there's nothing to fix.