PLX Team
PLX Team5mo ago

Upload file to supabase

Hi, I am using the html to pdf node and would like to upload the pdf file to Supabase storage immediately it's created. Please how do I do that?
Solution:
Hey @PLX Team. I'm sharing a remix link here for a workflow that does this. You just need to fill in the api keys: https://buildship.app/remix/6150b803-c78f-4a98-a2c7-1240443b38bd
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.
Jump to solution
21 Replies
AI Support
AI Support5mo ago
To upload the PDF file to Supabase storage immediately after it's created using the HTML to PDF node, you will need to set up a workflow that connects the output of the HTML to PDF node to the Supabase storage upload function. Here are the steps you can follow: 1. Create the HTML to PDF Node: Configure this node to generate your PDF file. 2. Add a Supabase Storage Node: Configure this node to upload the file to your Supabase storage. You can refer to the following documentation for detailed instructions on how to configure these nodes: - HTML to PDF Node Documentation - Supabase Storage Node Documentation If you need further assistance, please submit your query via the in-app support button.
PLX Team
PLX TeamOP5mo ago
There is no supabase storage node.
AI Support
AI Support5mo ago
It appears that you are looking for a node to manage files in Supabase storage. Currently, BuildShip does not have a dedicated Supabase storage node. However, you can connect to Supabase storage using the available Supabase nodes for CRUD operations and file management. For more detailed information on integrating Supabase with BuildShip, you can refer to the following documentation: - Supabase CRUD Operations - Supabase Search Integration If you have specific requirements or need further assistance, please submit your query via the in-app support button.
Integrate Supabase DB with BuildShip – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Supabase Search Integration – BuildShip
The Supabase Search Integration in BuildShip allows users to leverage Supabase for their searching and indexing needs.
Edgar
Edgar5mo ago
Hi @PLX Team , I was looking to do something similar and this AI bot answer wasn't helpful. I was able to get this to work using the "AWS S3 Storage — Upload Base64 File" node, and modifying a bit. Here's the Supabase Storage documentation to get you started: https://supabase.com/docs/guides/storage/s3/authentication?queryGroups=language&language=javascript In this node you have to add a new input for the Supabase S3 endpoint URL, but then it works. I just implemented this and tested and see my upload file. Hope that helps!
AI Support
AI Support5mo ago
Hi @PLX Team, It seems like you have a specific question about implementing something in BuildShip. For better assistance, could you please provide more details about what you are trying to achieve? This will help in giving you a more precise answer. If you need more detailed guidance, you can also submit your question via the in-app support button. Thank you!
Solution
Luis
Luis5mo ago
Hey @PLX Team. I'm sharing a remix link here for a workflow that does this. You just need to fill in the api keys: https://buildship.app/remix/6150b803-c78f-4a98-a2c7-1240443b38bd
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.
Edgar
Edgar5mo ago
This a much better and cleaner solution then what I hacked together. Thanks Luis!
AI Support
AI Support5mo ago
It looks like you're looking for a cleaner solution for your BuildShip workflow. If you need specific guidance or have any questions, feel free to ask! For more detailed assistance, you can also refer to the relevant sections of the BuildShip documentation: - BuildShip Basics - Node Customization - Logging - Testing Nodes If you still have questions or need further assistance, please submit your query via the in-app support button.
Node Output – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Script Node – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Logging – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Testing – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
PLX Team
PLX TeamOP5mo ago
Thank you @Edgar and @Luis . Took me the whole day but I eventually worked out something really similar to the remix that @Luis shared. I probably wouldn't have gone through all the trouble if I had seen this earlier. I also had two implementations. One that worked with the Anon upload and the other that uploaded as the currently signed in user (RLS policies et al). Huge shout out to Buildship AI! Really helpful!
AI Support
AI Support5mo ago
It's great to hear that you found a solution and that BuildShip AI was helpful in your process! For more detailed information on integrating Supabase with BuildShip, including handling authentication and Row Level Security (RLS) policies, you can refer to the following documentation: - Supabase CRUD Operations - Supabase Search Integration If you have any further questions or need additional assistance, feel free to reach out via the in-app support button.
Integrate Supabase DB with BuildShip – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Supabase Search Integration – BuildShip
The Supabase Search Integration in BuildShip allows users to leverage Supabase for their searching and indexing needs.
Janis
Janis5mo ago
Hi all, So happy to finally find some info about how to upload files to supabase storage. I'm using the screenshot template and swapped the buildship node with the supabase upload file node. while i do get a success message, I cannot see an uploaded file in my storage. does the node work flawlessly for you? Do I need to do something different since I'm uploading .png and you're uploading .pdF?
AI Support
AI Support5mo ago
It sounds like you're encountering an issue with uploading files to Supabase storage using the Supabase Upload File node in BuildShip. Here are a few things you might want to check: 1. File Path and Bucket Name: Ensure that the file path and bucket name you are providing in the Supabase Upload File node are correct. 2. File Type: Although you are uploading a .png file instead of a .pdf, the node should handle different file types correctly as long as the file path and bucket name are correct. 3. Permissions: Check the permissions of your Supabase storage bucket to ensure that the file can be uploaded. 4. API Keys: Verify that the API keys used in the Supabase node are correct and have the necessary permissions. For more detailed information, you can refer to the BuildShip documentation on the relevant nodes and workflows. If you need specific documentation links, you might want to use the in-app support button to submit your question directly. If you need further assistance, please submit via the in-app support button.
Janis
Janis5mo ago
More specifically, I am getting a "ECONNRESET" error message
AI Support
AI Support5mo ago
It seems you are encountering a "ECONNRESET" error message. This generally indicates that the connection was forcibly closed by a peer, which could be due to various reasons such as network issues, server-side problems, or client-side issues. For more detailed troubleshooting, please refer to the official BuildShip documentation. If you cannot find the specific information you need, I recommend submitting your query via the in-app support button. You can start here: BuildShip Documentation If the documentation does not resolve your issue, please submit your query through the in-app support button for more personalized assistance.
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.
Luis
Luis5mo ago
Hi @Janis, can you please submit an in-app support so I can further look into your workflow? Also are you sure you're using the service_role secret key?
Janis
Janis5mo ago
Thanks @Luis , just sent the message. And yes, Im using the service role - i must be missing something. Thank you so much!
Luis
Luis5mo ago
Hey @Janis, this should be working now, can you try again? There was an issue with the Screenshot node returning the wrong file path but this is fixed now.
AI Support
AI Support5mo ago
Hi @Janis, Could you please try again? There was an issue with the Screenshot node returning the wrong file path, but this has been fixed now. If the issue persists, please submit via the in-app support button.
Janis
Janis5mo ago
Hey Luis, amazing, happy to confirm that the file upload is working fine now. Thanks a lot, you've solved a big challenge for me. I was also struggling with the sendInvitebyEmail function in Supabase and used the AI Node -> easy peasy. Thanks again and cheers!
AI Support
AI Support5mo ago
Hi @Luis, That's great to hear that it worked for you! If you have any more questions or run into any other issues, feel free to reach out. For more information on using Supabase with BuildShip, you can always refer to our documentation: - BuildShip Documentation Cheers!
Welcome to BuildShip – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
prolax
prolax4mo ago
I am having the same issue, have messaged in-app.