sailorboy
sailorboy9mo ago

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
Bhavya
Bhavya9mo ago
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.
No description
No description
Gaurav Chadha
Gaurav Chadha9mo ago
@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.
sailorboy
sailorboy7mo ago
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 🙂
Gaurav Chadha
Gaurav Chadha7mo ago
Hi @sailorboy, Yes, you can use the Upload File trigger now, also there are now two template to support multipart upload.
No description
sailorboy
sailorboy7mo ago
Thank you soo much for your help. I will try this out now!