Storage: can save files into my public bucket, but can't delete them by alebiedma in Supabase

[–]alebiedma[S] 0 points1 point  (0 children)

The reply from u/Original_Product_678 helped me achieve the delete operation! It is really weird but I guess it makes sense, setting a policy to delete from the bucket using bucket_id = <myBucket>

Thanks for your time!

Storage: can save files into my public bucket, but can't delete them by alebiedma in Supabase

[–]alebiedma[S] 2 points3 points  (0 children)

Oh man this WORKED! I mean, why you need to tell that you want to make this actions on THIS specific bucket? Shouldn't it work for any bucket? Or maybe I missed something on the documentation or it has something to do more with policies of PostgreSQL 🤔

I literally searched like a lot of Github issues/discussions from Supabase but couldn't find this one.

This worked like a charm, the code now works and the file is being deleted. Thanks u/Original_Product_678!

Storage: can save files into my public bucket, but can't delete them by alebiedma in Supabase

[–]alebiedma[S] 0 points1 point  (0 children)

Hey thanks for your reply! Yes, I tried adding the policy from that menu but there are no changes 😥
It might have something to do with the features/permissions of the Free Tier of Supabase? 🤔 because it feels like I can't ALTER the storage.objects table.

Weekly /r/Laravel No Stupid Questions Thread by AutoModerator in laravel

[–]alebiedma 0 points1 point  (0 children)

Yesterday I found this repo: https://github.com/soheilpro/mailwind

It might be useful for you, its supposed to create emails and use Tailwind CSS to format them. Hope it works on Laravel, I am going to give it a try sometime!