
Hi everyone, I'm receiving the error in the screenshot whenever my code attempts to download files via a fetch
call.
Weirdly, I'm able to create new Audio()
objects using the URLs returned from the Storage SDK functions.
I have tried both storage.getFileDownload
as well as storage.getFileView
and my permissions for the bucket in question are set to allow all users to both create and read.
Does anyone know the step I'm missing?

My goal is to get these audio files in blob form

Aha, changing my permissions to allow Any to read solved the issue.

If you don't have any other question, can you mark your issue as solved?

btw, your problem was probably due to fetch not including the appwrite cookies in your request so you were unauthenticated

@Guille yep I'll mark it resolved now

Ahhh

I see

Thanks @Steven

[Resolved] Getting a file in Storage via fetch?

[SOLVED] Getting a file in Storage via fetch?
Recommended threads
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Organization not exists anymore
Hello! We have a problem with a cloud database. We are on the Free plan, but after a refresh the site wants me to create a new organisation, and I not see the c...
- JSON and Object Support in Collection do...
I am working with Next.Js and Appwrite Cloud, I am relatively New to Appwrite but i have noticed there is no direct support of JSON and Object support in attrib...
