So this is a weird one, I'm no longer able to upload files to Appwrite. I'm using the latest versions of both self-hosted and the SDK but I'm getting this error appear in the Appwrite logs
[2024-07-31 15:09:10 *41.26] NOTICE Context::parse_multipart_data() (ERRNO 9010): parse multipart body failed, reason: first boundary mismatching: expecting '3' at 23, but it is '2'
[Error] Timestamp: 2024-07-31T15:09:10+00:00
[Error] Method: POST
[Error] URL: /v1/storage/buckets/:bucketId/files
[Error] Type: Utopia\Exception
[Error] Message: Param "fileId" is not optional.
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 615
What's weird is that is was working fine until earlier today, I haven't changed anything, upgraded anything or restarted anything. I know for a fact that I am passing fileId into the SDK as I have a wrapper that defaults to using ID.unique()
:
const upload = await storage.createFile(
Base.storage.bucket,
ID.unique(),
image,
);
Recommended threads
- Appwrite CLI not working as expected
Until yesterday I was authenticated in my Appwrite instance through the CLI, and I was able to get my functions and deploy them manually. Today, when I went ba...
- Could not list X (users, buckets, etc) :...
Hi, I'm currently self-hosting Appwrite locally using Docker. Using the node.js function template, I can invoke the /ping endpoint without issue. However, the ...
- custom push notification channel
Hi, Is there is a way to set a custom push notification channel in appwrite?