
Heyo,
What would be the best way for avatars/gallery support per user? How would you link that exactly? c:
I would like:
- Per-user gallery
- Total gallery (all images)
- Avatar (profile images) per user

You can use a db collection to store users and their related images for the gallery

How would you exactly set their related images?

There are a number of ways to accomplish it. For example you could have a collection called user_galleries
with the following attributes gallery_name
, and user_id
and in this collection you'd store the galleries for each user. Then you'd have another collection gallery_images
with attributes gallery_id
and image_id
which would store the images associated with each gallery. You can create relationships between collections with appwrite's relationship feature or do it manually.


Sad that there's no better way to connect images.

How so? It's standard practice to store files (images) in buckets and associate them to the relevant data in collections with their id (or path)

Storing files as blobs in dbs is generally not the best

hmm

Thanks, I'll try it out!

All right, all the best

[Solved] Avatar/Gallery page per-user
Recommended threads
- Database error
My code: await databases.createDocument( process.env.APPWRITE_DATABASE, process.env.APPWRITE_COLLECTION_USER, data.userId, ...
- How to run queries to get the storage li...
I installed the n8n (self-hosting) and community node n8n-nodes-nappwrite. I tried to get the storage list files more than 25 records. But I cannot find the w...
- Server Error when using Apprwrite in .NE...
Hello can somebody help me.. I'm getting server error 500 when I try use queries in ListDocuments function but when I removed it or just query without filter it...
