Closed kristal374 closed 1 month ago
A solution was found in the form of the downloads
permission, it allows you to download files directly to the user's device. documentation for Chrome:
https://developer.chrome.com/docs/extensions/reference/api/downloads
for Firefox (support since version 47): https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/downloads
The existing file upload mechanism should be replaced or supplemented if possible. In the current implementation, the file is initially loaded into RAM and only after it has been fully loaded can it be uploaded to the user’s disk. If the downloaded file is particularly large in size and if there is insufficient RAM, a failure will occur, and only at the stages when the RAM on the user’s device runs out, which will lead to a loss of both time and unnecessary consumption of Internet traffic. The new download mechanism should allow files to be downloaded directly to the user's device, while maintaining the ability to download multiple files in a row (for a complete download of the series). Moreover, the current download mechanism prevents the implementation of other functionality for choosing a download location for files.