-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idea - allow websites default directory access to $HOME/Downloads/<domain.name>
#235
Comments
This doesn't seem like a good idea to me. It would grant websites permission to download all kinds of stuff to your computer, such as malicious |
I agree with this idea. |
I do think the sandboxed |
It's still unclear to me that why this website want to access the downloads folder, and how it will use it. In my opinion, the most common usage for an isolated download folder is to download (multiple) large dynamicly generated files like what StreamSaver.js does now.
An
I think a prompt is still required, like nowadays Chrome has the "download multiple file" ("Automatic downloads") permission. But compare to
Considering Security Considerations -> Websites trying to use this API for tracking (https://wicg.github.io/file-system-access/#privacy-tracking), this handle should only have write access (#119), that's enough for my "most common usage". EDIT: It's even possible for browsers to integrate existing file downloading logic with operations on this special file handle, including showing download progress or history, automatically rename files when exists, etc. EDIT2: What I want is more like #29 |
Closing this issue since the original request ("default directory access to @yume-chan I've been kicking around some ideas for how we can improve this API for download-like use cases, but it's not on our roadmap in the near future. I expect those discussions to happen on #29 and #119, so subscribe to those issues and stay tuned :) |
Oh also, more persistent access to files outside outside of the OPFS is coming soon. I hope to post an update to #297 in the coming weeks |
in example of
https://googlechromelabs.github.io/text-editor/
, file-api could allow default read/write access to~/Downloads/googlechromelabs.github.io/
which is isolated from other sites.pros:
~/Downloads/
w/o needing user-promptcons:
~/Downloads/
directory?~/Downloads/googlechromelabs.github.io/
arbitrarily created by user with sensitive data (need some way to check if created by file-api and if not then prompt user)?The text was updated successfully, but these errors were encountered: