#I just keep getting that damn error
36 messages · Page 1 of 1 (latest)
excuse me. but i don't understand the problem or the context of problem, can you explain me?
Can you show us your code?
i just want to make a function that get the file url from the bucket in appwrite
on a function?
that is what I get when I use get_file_view() function
yah
I got it in binary form that is the problem
have you the id of image?
or file
i you have the file id, maybe you can create a specific string with the basic pattern of url
on cloud it should be cloud.appwrite.io/v1/storage/buckets/<bucketId>/files/<fileId>/view?project=<projectId>&mode=admin
ok
I'll try it
i don't know if this is a correct solution, maybe you can try, but stay attention with the roles on bucket, otherwise the file can be accessible to everyone
even the download, it get the same result
ok but what should you do with the url?
I'll pass the parameters to the url
I need to send that url to the front-end developer
so he can handle it
You have to use getFile and use the metadata to create the URL
https://appwrite.io/docs/references/cloud/client-web/storage#getFile
getFileDownload returns the file content, same as getFilePreview
I could not find it