Skip to content

Getting Storage Error when trying to upload files #103

Closed
@kevoniori

Description

@kevoniori

I've been trying to upload a file to my Supabase storage. I am trying to insert a file into a public bucket, I've created basic policies to insert, update and delete. when I try to upload a file though it returns a 400 error, with no error message

Screen Shot 2023-08-07 at 1 08 05 PM

Here's my code:

Screen Shot 2023-08-07 at 1 08 27 PM

I've tried both the accessToken and the api key in my headers and neither gives me access. In fact, whenever I use the apis the error message then says 'invalid JWT'. The only thing that works is my secret_role key

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions