Skip to content

Add "download" capabilities  #29

@inexorabletash

Description

@inexorabletash

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions