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
- Cant configure email templates
i configure it on the console, and when i send the OTP, it sends with appwrite's email (instead of custom smtp) and with the branding, but i have the Pro (educa...
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...