# Simple upload file to supabase bucket - 500 error

**URL:** https://community.weweb.io/t/simple-upload-file-to-supabase-bucket-500-error/17492
**Category:** How do I?
**Tags:** file-upload, supabase
**Created:** [March 28, 2025, 10:40am UTC](https://community.weweb.io/t/simple-upload-file-to-supabase-bucket-500-error/17492 "2025-03-28T10:40:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Matt](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/matt/32/13947_2.png) [@Matt](https://community.weweb.io/u/Matt)
#### Post date: [March 28, 2025, 10:40am UTC](https://community.weweb.io/t/simple-upload-file-to-supabase-bucket-500-error/17492/1 "2025-03-28T10:40:45Z")

</div>

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

```auto
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

```

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/f37ef0e42209d52b5242e0693b646fc9f02d89e6.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/1d9ad0222e2feb18b66e6011bf9c68d656e2fb8c.png)

---

<div class="post-metadata">

### Author: ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)
#### Post date: [March 29, 2025, 2:52pm UTC](https://community.weweb.io/t/simple-upload-file-to-supabase-bucket-500-error/17492/2 "2025-03-29T14:52:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Matt](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/matt/32/13947_2.png) [@Matt](https://community.weweb.io/u/Matt)
#### Post date: [March 31, 2025, 10:27am UTC](https://community.weweb.io/t/simple-upload-file-to-supabase-bucket-500-error/17492/4 "2025-03-31T10:27:45Z")

</div>

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
