Rank 1: Thread
I want to get upload file url, when file create successfully. How I can achieve that?
Votes
0
Replies
9
Participants
Unknown
Messages
10
Rank 1: Thread
I want to get upload file url, when file create successfully. How I can achieve that?
Appwrite storage doesn't create URL for given file.
https://appwrite.io/docs/client/storage?sdk=flutter-default#storageGetFilePreview
When you use the createFile method you'll get back the file ID, use it in getFilePreview method.
Rank 1: Thread
In the console when I go to file detail, I can see the FileUrl button, I'm surprise why I want to call another api getFilePreview.
Click on the button
You'll get the file preview URL.
If you want to just have URL you can use this
https://appwrite.io/docs/rest#no-headers
https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID]Replace
Rank 1: Thread
Okay, got it your point.

Hey, if this issue has been solved, kindly edit the post title as solved. Thank you
Rank 1: Thread
[Solved]Get Uploaded File URL
[SOLVED] Get Uploaded File URL