-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Milestone
Description
Right now, web sites can trigger a file download (create an A element, populate href with a blob URL, click() it). This has several important characteristics:
- The operation is async, and can be throttled by the user agent, e.g. via permission prompts.
- The file data is immutable by the web app, so it can't be tinkered with after initiating.
- The user agent can scan potentially dangerous files (executables, archives) for malicious content.
- The user agent can present the file in a download tray/page/dialog/etc for easy access by the user.
I can imagine ways in which interop with these capabilities would be useful in conjunction with the new features being exposed here:
- Initiate "download" of a sandboxed file
- Initiate a "download" of a file to a directory where the web app has write permissions
- Just better ergonomics over the anchor/href/click dance.
- Allow creation (under UA control) of "dangerous" files, while still behind user gesture and UA scan.
dellagustin, yisibl, boredom2, yume-chan, bradisbell and 1 more
Metadata
Metadata
Assignees
Labels
No labels