image upload to supabase: retreive url
I want to upload an image to supabase bucket, get the url of the image and store it in a supabase table
3 Replies
AI Support Bot Information
<@1061301428376846467> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human!
Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers.
Please note: Team members will review and answer the questions on best efforts basis.
AI Response
You can use the Supabase CRUD Actions template from BuildShip to facilitate the process of uploading an image to a Supabase bucket, retrieving its URL, and storing it in a Supabase table. Here is a bit more context on how to use it:
Steps to Achieve Your Task:
1. Upload the Image to a Supabase Bucket:
- Use the BuildShip nodes to connect to your Supabase storage and upload the image to a specified bucket.
2. Retrieve the Image URL:
- After uploading the image, get its public URL.
3. Store the URL in a Supabase Table:
- Insert the URL into the desired table using the Supabase Insert or Update operations within BuildShip.
Pre-Built Template:
- Supabase CRUD Actions: This template allows you to manage CRUD operations on your Supabase database. You can extend this to include file uploads and retrieval of the file URL.
To get started, you can clone this workflow here.
By using this template, you'll have a foundational setup to handle data within your Supabase environment efficiently.
BuildShip AI Support
Hi @kenthebroken, this remix link can help you get started with what you're looking for. This takes in an image using the file upload trigger, then uploads the file to a supabase storage bucket, then writes the download url of the file to row in a supabase table.
https://app.buildship.com/remix/cbbf9ef9-157d-44d0-9576-e9ab985823b5
BuildShip - Visual backend workflow builder
Visually build workflows and powerful backend logic for your apps. Powered by AI, connect to anything with or without code.