I recently worked on a side project, which generates reports per user’s request. For each request, our backend will generate a report, upload it to Amazon S3 storage, and return its URL to the client. Since generating a report takes a while, the output files are stored and the server caches their URLs by request params. If a user orders the same thing, the backend will return the URL of the existing file.
A few days ago, I had a new requirement. Instead of individual files, I needed to download a zip file containing hundreds of reports.

#javascript #download #zip

Download files and zip them in your browsers using Javascript
5.00 GEEK