M
M
Mad Coder2021-06-13 20:28:19
React
Mad Coder, 2021-06-13 20:28:19

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

2 answer(s)
A
Aetae, 2021-06-13
@polyak-y

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.

V
Vladimir Korotenko, 2021-06-13
@firedragon

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 question

Ask a Question

731 491 924 answers to any question