Upload an image to Google Cloud Storage bucket - Using FlutterFlow and BuildShip
I am trying to upload an image to a Google Cloud Storage bucket but for some reason it is not working.
1) In FlutterFlow, I have created an option to upload a file and store it in Local Upload / Widget state.
2) I have then created an API call with a multipart body type with uploaded file and file name.
3) I have created a REST API call with a post method with 'file name' and 'uploaded file' in body.
4) I have then tried all combinations / nodes to upload the file to my google cloud storage bucket but it does not work for some reason.
I would be very very thankful if someone could help me out with this.
Thanks in advance.
5 Replies
Hey @sailorboy, one way to achieve this is via using the "Upload File" node which lets you provide a public url (make sure it is publicly accessible from the internet) and a destination path for you to store your file.
You'll also be able to see the file from the BuildShip Storage Manager in your project settings.
We've also added instructions and sample inputs in the Node Info (check the second screenshot).
If this doesn't work, you can add the "Log Message to Console" node to determine the strucure of your incoming request. Refer: https://docs.buildship.com/logging
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.
@sailorboy, currently multipart upload is not supported, you'll require to convert it to a public download URL and then upload. We'll add support for this soon.
Thank you for your help @Bhavya ✨
Thank you for sharing. Looking forward to the release of this feature.
For now, I have managed to get this to work by uploading the file through a URL.
Thank you for your help 🙂
@Gaurav Chadha @Bhavya - Hi there! Hope you are well. Just wanted to check if there is an update on the support for multipart upload.
Thanks in advance 🙂
Hi @sailorboy, Yes, you can use the Upload File trigger now, also there are now two template to support multipart upload.
Thank you soo much for your help. I will try this out now!