Back

Get file url from storage bucket

  • 0
  • Self Hosted
  • Storage
  • Cloud
Franco van Vuuren(u21463702)
8 Nov, 2023, 15:38

Is there a way to obtain the file url for a specific file. Currently I only see ways to get the actual file through the api, but I need the fileURL.

TL;DR
The user is asking for a way to obtain the file URL for a specific file from a storage bucket. The solution is to build the URL using the bucket id, file id, and project id. An example URL is provided: cloud.appwrite.io/v1/storage/buckets/{bucket ID}/files/{file ID}/view?project={project ID}.
Kenny
8 Nov, 2023, 15:56

You can build the URL using the bucket id, file id, and project id.

Kenny
8 Nov, 2023, 15:56

cloud.appwrite.io/v1/storage/buckets/{bucket ID}/files/{file ID}/view?project={project ID}

Franco van Vuuren(u21463702)
8 Nov, 2023, 19:07

thank you

Drake
13 Nov, 2023, 21:05

can this be marked as solved now?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more