Explicit API for download manager |
||
Issue descriptionShould we have an API to interact directly with the download manager? Maybe some extension of fetch() so we don't have to download the whole file and convert it to a blob that is dumped into an <a download> element? I guess there's also some appetite for having a way to download multiple files that works reliably cross browsers.
,
Mar 22 2018
I think we're building this out through the new background fetch JS API? Although I don't think that lets us give the file contents as they are downloaded (we still do blobs on a per-file basis). +peter@ to help figure out if that meets your needs and/or if it'd be worth tweaking the spec to address it. :).
,
Mar 22 2018
Yeah, that sounds like Background Fetch: https://wicg.github.io/background-fetch/ Support for accessing in-progress downloads is in the specification as BackgroundFetchRegistration.activeFetches. It's something we eventually want to support as there are very good use-cases, but it's currently scoped post v1. |
||
►
Sign in to add a comment |
||
Comment 1 by barretth...@gmail.com
, Mar 21 2018