Simple upload file to supabase bucket - 500 error

I feel like I’m missing something.

I’ve created a bucket called “estimates” with a folder inside called “estimates”.
I’ve set a simple insert policy where everybody can upload a new file.

In Weweb, i’m trying to use the ‘Supabase | Upload a file’ action.
See my set up in the attached image :

  • From bucket = estimates
  • Path = estimates/visualiser-estimation.png
  • File = {object from my upload action}

How can I solve my 500 error

name: "Error"
stack: "Error: Internal Server Error at Object.uploadFile (https://cdn.weweb.io/components/f9ef41c3-1c53-4857-855b-f2f6a40b7186/6d5dd36e-d77a-4054-901e-806ac8c56554/dist/manager.js?v=1:1:256418) at as..."
message: "Internal Server Error"
cause
Object

Check your logs (in Supabase), bring us your logs, otherwise it’s not possible to help.

I’ve actually used the log, and it did tell me a lot.
I modified my auth. users role in supabase and it didn’t like it. That’s the reason

1 Like