Hi,
Is it possible for a function (or webhook?) to return a file ? I want to return user profile image only from an id of a user ?
If it's small, you can try to base64 encode it
Otherwise, you may need to make profile images public
And if it is public, how can I achieve this ?
if it's public, you can use the storage api to fetch it 🧐
assuming you're storing it in appwrite...
But If I don't have the url of the image ? link of the profile picture is in the collection of my user, so I need to fetch first user collection, get the link and then get image from storage
i would store the images in a profile images bucket where the ID matches the user ID. then you can easily get the file with the user id
hum ok, I see, good idea 👌
Recommended threads
- The file size is either not valid or exc...
Hello, I am receiving the following error when I am trying to deploy a function from my local. ``` > appwrite push functions --function-id xxxxxxxxx ℹ Info: Va...
- How does sending email from the Appwrite...
I noticed that the pricing page mentions “Messages – 1000 per month” for the Free plan. Is this different from sending emails? When I try to send an email usin...
- Appwrite functions dart runtime (3.7 sup...
It seems that currently Appwrite functions only support Dart runtime to 3.5, for my code I need dart 3.7. Is there any plan to support Dart3.7 runtime soon. Is ...