Hello!
I'm currently using the REST API to upload large JPEG files to an Appwrite storage bucket via a microcontroller, but I'm encountering an issue where the server does not return a response after I send the HTTP POST request with the multipart/form-data content. I ensure the Content-Length header is correctly calculated, and I stream the file data in manageable chunks to conserve memory. Despite this, the connection either freezes or times out without a server response. Could you clarify if there are specific requirements or best practices for handling file uploads through the REST API, such as chunked uploads, timeout settings, or required headers? Additionally, are there known cases where the API might not return a response under certain conditions, and how can I troubleshoot or resolve this?
You have some information and examples here: https://appwrite.io/docs/apis/rest#files
I don't remember what is exactly the max allowed chunk size the server will accept. @dlohani do you recall what is the number?
@WhMonkey another thing you can do is mimic the SDKs behavior, they are already designed to handle chunk uploading for bigger files. Then, also take into consideration that file size is limited on Cloud depending on your plan.
Also, just from curiosity, why do you upload directly to the API and not just use one of the SDKs?
Recommended threads
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- Appwrite for Education
I am writing to report an issue with my account limits. I currently have the GitHub Student Developer Pack active, which should include 10 Appwrite Pro projects...
- How to stop my project from being frozen...
So we encountered an error in production because our appwrite project had been frozen due to inactivity. Is there any way of automating checking in and activity