HeyPuter / puter

🌐 The Internet OS! Free, Open-Source, and Self-Hostable.
https://puter.com
GNU Affero General Public License v3.0
26.47k stars 1.74k forks source link

Large files take too much time to download. #779

Open ECHOlinuxWarrior opened 1 month ago

jelveh commented 1 month ago

Could you please provide more information on this?

ECHOlinuxWarrior commented 1 month ago
  1. I uploaded a file to my account, with file sizes ranging from 3 to 5 GB.
  2. When I right-click on the file and select the "Download" button, the file begins processing.
  3. However, after around 10 to 20 minutes of processing, only then does the download actually start in my browser.

The issue is that during the initial processing time, the browser does not provide any feedback or indication that the file is being prepared for download. This leaves the user uncertain about whether the download is proceeding as expected. Ideally, there should be some kind of progress indication during this processing phase before the file starts downloading.

KernelDeimos commented 1 week ago

@jelveh I think this happens because trigger_download() buffers the response to a Blob and then calls saveAs afterwards. I checked nginx config and the logic of down.js and everything looks like it should be streaming to the client from backend.