#[SOLVED] Getting a file in Storage via fetch?

1 messages · Page 1 of 1 (latest)

golden nexus
#

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

golden nexus
#

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

rustic axle
#

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

copper latch
golden nexus
#

@rustic axle yep I'll mark it resolved now

golden nexus
#

I see

#

Thanks @copper latch

#

[Resolved] Getting a file in Storage via fetch?