Reputation: 2040
I'm working on creating a relatively simple thing that lets a user pick from multiple thumbnails and initiate a download of the original files.
I'm aware of implementations where you stream blobs and then create files out of those, but I was wondering if there was a way to use the navigator.permissions.query
API or something similar to test whether Downloading multiple files is allowed by the user, because optimally the downloads would be parallel instead of queued.
The basic prompt in the browser is such that I've already had messages about "downloads not working" as the native prompt is relatively small and in the corner of the screen.
Upvotes: 1
Views: 912
Reputation: 31815
The Permission registry does not contain automatic downloads yet, and when it does (if it does one day) I'm not sure if they include the "multiple downloads" setting since it is a global setting (not related to a particular domain) so it might be an information that should not be exposed (maybe I'm extrapolating too much on this, though).
Upvotes: 1