© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
43 replies
((()))

Storage public URL

I have a trigger and a function that populates public.photos table when file is uploaded

begin
    insert into public.photos (id, file_path, bucket_id)
    values (new.id, new.name, new.bucket_id);
    return null;
end;
begin
    insert into public.photos (id, file_path, bucket_id)
    values (new.id, new.name, new.bucket_id);
    return null;
end;


public.photos contains column file_url; how can I dump public url into that column when file is uploaded?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

problem when Retrieve public URL to get image url public and supabase storage
SupabaseSSupabase / help-and-questions
3y ago
get public URL of object in storage.objects
SupabaseSSupabase / help-and-questions
4y ago
Public Supabase Storage URL rejected by third-party service (Goodtape)
SupabaseSSupabase / help-and-questions
2mo ago
Are Storage Bucket Public URLs at risk of changing?
SupabaseSSupabase / help-and-questions
3y ago