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
- Sites: Auto deploy on wrong github repos...
Hello, I have kinda with UAT(testing env) and prod env. When i pull request from dev -> uat, which stands as pre-prod environment to fully test all functionalit...
- Generate CSR
How do I generate a CSR for my domain host? They are asking me to generate one for my hoosting here on appwrite
- Appwrite Push Notifications: "Unknown er...
Hi all, I'm running into an issue with Appwrite push notifications in my web project. When I try to manually send a notification to a user from the Appwrite we...