[SOLVED] After storing on Appwrite Storage, how can I get the file url?
- 0
- Resolved
- Web
- Databases
- Storage
- Cloud
- Self Hosted
Hi, I have used appwrite on my nextjs 13 app to store images. But when I call the storage.createFile I am getting a json response with just a fileId. What I want is to get the file url and then store it to appwrite database in the imgUrl field.
How can I achieve this or is there a better way to have an image preview on my app that is depending on the database records? Please also take note that imgUrl field could have different image url not only within appwrite.
Thanks.
Is your storage public?
If so you can use the preview endpoint
Like in here
https://discord.com/channels/564160730845151244/1112589191176540200/1112591019465265172
oh that makes sense. Yup I am able to view now! Thanks
[SOLVED] After storing on Appwrite Storage, how can I get the file url?
Recommended threads
- Bulk API limitations in self-hosted serv...
Environment: Appwrite Selfhost SDK: node-appwrite 28.0 Calling `upsertRows` (also applies to `createRows`/`updateRows`/`deleteRows`) with more than 100 rows fa...
- Self Hosted GitHub connection not adding...
After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions. I removed the existing github connection via Set...
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...