B
B
bitalikr19992019-08-23 09:52:58
JavaScript
bitalikr1999, 2019-08-23 09:52:58

How to send a big video to api from react native?

Back-end - node.js (AWS)
Front-end - React
Such a situation, we had a video upload to the application initially only with a limit of up to 10mb there (for a couple of seconds)
Here the customer says you need to remove the limits completely so that you can upload 100-200mb
On api it was implemented through multi-upload on aws s3, from the browser through react we convert the video to base64 and send it in parts, it works fine But on the application if you try to convert such a video to base64 then the application either
freezes or crashes
with react native make sending a stream, parts, to the backend

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Robur, 2019-08-23
@bitalikr1999

look here: https://gist.github.com/nandorojo/c641c176a053a9ab...
If you believe what is written there, you just need to transfer the path to the file to xhr. I didn't check.

P
profesor08, 2019-08-23
@profesor08

Split the data into blobs and send it, at least by a kilobyte.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question