I have a web app where a user can create multiple documents in the database and also upload images, the problem is how will I identify for particular which document the image was uploaded eg. If I create a blog where user can add image, name, etc, what if the user creates multiple blogs and add image to those blogs, for every blog a separate document is needed to be created how can I add the document Id to identify this particular image belong to this blog ?
Please reply?
You can store a unique ID with ID.unique() or UUID in a variable. So use the same id as image_url in your database and as your fileId in the bucket
I'm the document, you would put the file id...
Recommended threads
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...