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
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...