Answer the question
In order to leave comments, you need to log in
Is it possible to merge links, generate and download a zip archive in react?
From the server via api, I receive an array of download links. Is it possible not to download from one link, but all at once in one archive?
Answer the question
In order to leave comments, you need to log in
React is client side. If you need to do something with files, you need to have those files on the client. You can download files into memory (if the client has enough memory), then put these files into an archive using the same JSZip (x2 memory) and send this archive to the download.
But you don't have to do that.
If your server - pack on the server.
If you just need to download - use download managers that can eat a set of links.
In Yandex it is possible
Make a handler that packs the files and send its output to the client
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question