1

I refered to this thread and give me a hint how to automatically download a file

However, i have to problem.

  1. the file i want to download is big, which is more than 7GB. i cannot save all the content in the memory and save to disk until the fetch finished.
  2. i want to achieve resume from breakpoint feature for my downloading feature. which i have to use range header.
  3. What's more. the file i download is a zip file. And i'm already able to extract it in memory. But how can i save the extracted files onto the disk in a location where the user want

How can i do it?

demonguy
  • 1,977
  • 5
  • 22
  • 34
  • I think in general you're better off letting the browser take care of downloading large files natively unless there is some other reason you must stream the file through your javascript? – Trav Broad Feb 20 '22 at 08:16
  • Yeah. What i want to do is download a zip file, extract it, and transfer it to a usb device. However i also want to backup the file onto the PC disk – demonguy Feb 20 '22 at 12:12

0 Answers0