On the day of today, it is possible to create some...
# help
e
On the day of today, it is possible to create somehow a Function hook when a storage element has been added? I dont see this in the Dashboard, only triggers when the database is updated. I need to do an Http call with at least the path of that file.
l
I think that putting trigger on the table
storage.objects
is what you are looking for. Generally - all of the data are in one of the Postgres tables, so it should be possible to put a trigger on any data change in the Supabase
e
So I will have to create a trigger that calls a postgres function that calls a http endpoint I guess
But I won't be able to do a function hook directly from that because storage, buckets or any of that does not appear as an option in the functions hooks
l
Yes, everything needs to be configured as a trigger, because even Supabase APIs uses the database as a source of truth. Or you can try to create a functional hook with the SQL statement (if it is possible) because UI currently supports only public schema