
Hi, After uploading a file using the storage api, I generate a download link locally. When i try to preview the image using that link i get an error ( in the screenshot in red) But i am logged in on my application.
I am trying to access the image using Image.network({link}) from the application I can successfully load the image if i use the SDK method but that wont be convenient because i store the links as an array of string in the database
I know that it is possible to add headers inside Image.network() but which headers to add ?

Update: I tried adding read permission to guest.... i still get the same error

Update2: I saw that you can get the link to the file from the console: after making some change i came up with
https://8080-appwrite-integrationfor-mn3gcq2j4mi.ws-us89b.gitpod.io/v1/storage/buckets/6409a2f7d1ef60253b32/files/6409afb74ac9b7320366/view?project=639d557f4ee80d9575fd Which work when guests have permission.... however do we really need to add the project ID inside the url?? What would be the best way to generate urls please?
Ps: The server is on Gitpod so the link might not work all the time

Hi, thank you for your question, allow me to look into the best ways and get back to you
PS - Luffy's picture looks great haha

ok ok

ok ok no issue 🙂 I will wait

What you did is actually the correct way - using URL that you see in Appwrite Console. Talking about "do we really need to add the project ID inside the url?" - yes You can do custom ID for file ID. 2 projects can set same custom ID.. So without project ID, it would be impossible to know which project it belongs to. It's for security

ok ok i see, thanks 🙂

[Solved]Cannot access generated download link

[SOLVED]Cannot access generated download link

[SOLVED] Cannot access generated download link
Recommended threads
- File tokens regenerate each page reload
Hello, on appwrite 1.7.4, when I create a file token via the API Tokens(appwriteAdminClient)#createFileToken I get a secret, then when I check in the console t...
- Appwrite isn't accepting the api from se...
Error creating user: AppwriteException: Server Error type: 'general_unknown', response: '{"message":"Server Error","code":500,"type":"general_unknown","versi...
- Subject: Request for temporary quota lif...
Hi Appwrite Team, our nonprofit animal rescue app on Appwrite Cloud is currently throttled due to read‑quota limits, and we need a temporary increase so rescue ...
