Rank 4: Virtual Machine
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
Votes
0
Replies
11
Participants
Unknown
Messages
12
Rank 4: Virtual Machine
Heyo,
What would be the best way for avatars/gallery support per user? How would you link that exactly? c:
I would like:
Rank 3: Container
You can use a db collection to store users and their related images for the gallery
Rank 4: Virtual Machine
How would you exactly set their related images?
Rank 3: Container
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.
Rank 3: Container
Rank 4: Virtual Machine
Sad that there's no better way to connect images.
Rank 3: Container
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)
Rank 3: Container
Storing files as blobs in dbs is generally not the best
Rank 4: Virtual Machine
hmm
Rank 4: Virtual Machine
Thanks, I'll try it out!
Rank 3: Container
All right, all the best
Rank 4: Virtual Machine
[Solved] Avatar/Gallery page per-user