xmaniaxzOriginal post
Rank 3: Container
Hi, I am working on my own CMS and i want to have storage containers for files. However some of them will be quite large. (3GB)
I am using NextJS and Appwrite together but i keep running into either 1 of 2 issues.
- When running the upload client side, the upload stops the moment someone refreshes the page.
- When running the upload server side, i can't send back the progress. (using NextJS route handler for api also doesnt work as it cant parse the body as formdata with Files. )
Summary
Developers wanted to upload large files with progress feedback using NextJS and Appwrite. They faced issues with client-side upload stopping on page refresh and server-side upload not sending back progress. To resolve the server-side issue, they can update the `POST` function in `/app/api/upload/route.ts` to return progress in the response.