I'm building a web application using Flask on a backend and ReactJS on a frontend. I need to be able to upload large (like tens or more than 100 of GB) high resolution video files.
For small videos, it's pretty easy. I'm using standard upload form and fetch API, sending POSTs with movie data in payload of my request.
The problem begins when my video becomes larger. I can easily upload a file of a size of 4GB but when it's about 8GB (amount of RAM memory in my workstation-if that matters) my browser freezes for some time and finally not whole file is being POSTed.
While uploading a file of a size about 30GB my Flask server throws a MemoryError.
Is there any nice way to upload such large files through the websites upload form? Maybe some kind of upstreaming to server or splitting file to parts?