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
- 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...
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...