Occasionally (twice in the last two days) I get an error document_already_exists when uploading an image to storage. I am using ID.unique. The code to upload the image:
final storage = Storage(client);
final file = await storage.createFile(
bucketId: storageId,
fileId: ID.unique(),
file: InputFile.fromPath(
path: event.imagePath!,
filename: event.imagePath!.split("/").last));
This doesn't happen every time, but it has happened twice in the last two days. What could be causing this and how to fix it?
Recommended threads
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...
- Get Started - Web is broken
Trying to complete the get started tasks since the "66%" was finally getting to me, and clicked on "web", was met with: ``` Uncaught TypeError: Cannot read prop...