How to send progress updates to frontend using FastAPI Websockets while uploading multiple files [ Code included ]
Task: Upload multiple files coming from UI clients ( NextJS ) using FastAPI POST method. There are two parts to it: Validating each file and dumping it in s3. Below is the code which i am trying to make work ( For simplicity, this one includes a simple html file and dumping onto disk rather than s3 ). I have left comments and print statements as is
How to send progress updates to frontend using FastAPI Websockets while uploading multiple files [ Code included ]
Task: Upload multiple files coming from UI clients ( NextJS ) using FastAPI POST method. There are two parts to it: Validating each file and dumping it in s3. Below is the code which i am trying to make work ( For simplicity, this one includes a simple html file and dumping onto disk rather than s3 ). I have left comments and print statements as is
How to send progress updates to frontend using FastAPI Websockets while uploading multiple files [ Code included ]
Task: Upload multiple files coming from UI clients ( NextJS ) using FastAPI POST method. There are two parts to it: Validating each file and dumping it in s3. Below is the code which i am trying to make work ( For simplicity, this one includes a simple html file and dumping onto disk rather than s3 ). I have left comments and print statements as is