P
P
prizrak392018-10-21 09:09:22
Java
prizrak39, 2018-10-21 09:09:22

Is it possible to upload a file in parts using REST?

There is REST with the help of which files are uploaded to the server from the client.
And if, for example, a file has a large size, is it possible to download it in parts (it seems to me that this is impossible within REST and sockets must be used)?
If you download the entire file, is it possible to determine how much of the file has been downloaded in order to display it to the user as a percentage?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2018-10-21
@VladimirAndreev

Rest is generally an agreement on the principles of the api.
And so, you take a unique ID from the server for downloading in response to the number of pieces of content, send all the pieces, as the server received them - it glued the file itself.
Or, in general, the file as a whole in the background should be packed into a multi-volume archive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question