N
N
Neckvik2019-06-30 16:27:47
Data transfer
Neckvik, 2019-06-30 16:27:47

How to exchange heavy files between server (node) and client?

There is any file (starting from a picture, ending with a video or a heavy archive), how can we transfer it?
We can hypothetically transmit in one HTTP request, but, as I understand it, in the event of a connection loss or failure, we first have to do everything. Also, we will not be able to show the status of the file download.
The bottom line is that you can, for example, continue to download the file when the connection is restored, and not download and download it again (such as downloading in a browser). Question: through what to do it and what to read? And how does it even work?
Server on Node, clients are different.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
de1m, 2019-07-01
@de1m

Maybe some ready-made module to use?
There is for example node-downloader-helper . Of course, you can write something similar yourself if you wish.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question