
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
- 500 Error on Console when Using Custom D...
Hey 👋 I’ve set up a custom domain for my Appwrite Cloud project (<my-custom-domain>). DNS is configured and the organization view loads fine when I open the c...
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
