How do i upload a image to supabase bucket correclty?

I followed this tutorial storage-upload-file but it is not working, it is uploading as text/plain;charset=UTF-8 - 15 bytes

can someone help me, this is driving me nuts

Can you show us how things are setup on your side with screenshots or a short video walking us through the workflow and the error you get? It’s very hard to help you otherwise.

Here I’m guessing you might have an issue with how things are configured in this step:

But it’s only a guess

@Joyce thank you so much for your time, here is a screenshot

Also is this the correct way? Shouldnt i press a submit button before send to supabse storage? Why does that sends when i change the value from the file uploader? I feel that the tutorial is missing crucial steps or something

Hi, you need to do the first File of your File Uploader. Right now you’re passing an array and Supabase recognizes it as a string. You can simply do this by adding a [0] after your [file_uploader - value], so it would look something like this: [file_uploader - value][0]. This way you pass in the File, instead of an array and everything will be allright.

Since you’re using a On change trigger on the file upload, this gets triggered automatically. If you want to trigger it upon user’s prompt, you can simply place this workfow on a button, or elsewhere.

1 Like

what about result?

this should give me back this url https://jetviiwsgdxevkjmfaez.supabase.co/storage/v1/object/public/blogfotos//484374992_24001816956086063_6417997975024413331_n.jpg

(EDIT) fixed by getting the first part from supabase