python-requests-toolbelt

How to Upload a large File (≥3GB) to FastAPI backend?

How to Upload a large File (≥3GB) to FastAPI backend? Question: I am trying to upload a large file (≥3GB) to my FastAPI server, without loading the entire file into memory, as my server has only 2GB of free memory. Server side: async def uploadfiles(upload_file: UploadFile = File(…): Client side: m = MultipartEncoder(fields = {"upload_file":open(file_name,’rb’)}) …

Total answers: 1