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
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...