Supabase delete/replace workflow

Can someone show me an exemple of a workflow that either replaces a image file in supabase or delete properly? I tried both and both didnt work at all, and yes ive checked all RLS and nothing worked for me..

here is an upsert. the event is from the standard file uploader,

here is the path


heres the supabase files.

something to keep in mind is having the file type in the name of the file

1 Like

thank you for your reply, but i need a REPLACE / DELETE example, not a upload, upload i managed to make it work just fine

upsert replaces if you give the same file name. Interestingly I just tested a delete that I was going to show you and it didn’t work might have been a mistake on my part as I was also deleting the row that held the reference to it. But I believe it was working in the past

1 Like

Ohh, got it, i will give it a try, thank you

1 Like

ok, im having issues with the path, this is what im sending “https://jrkwrxfvcbgzlkituekv.supabase.co/storage/v1/object/public/logos/logos_200825-3756.jpg” but on supabase it is creating a http folder inside a folder inside a folder

i just need to upload it to my bucket root, just a image

the “/” is telling it its a folder if just set the path to logos_200825-3756.jpg it wont have the folders

Weird, now my bucket image is the new replaced one, but in the url still shows my previous image..

@sam1 , it seems to be working now, but my image both on front end and on my bucket take ages to update properly, is that a cache issue?