scp
scp4mo ago

Upload image to firebase and get link with access token to use in flutterflow app

Hi, Im trying to outsource image uploading from my Flutterflow app to Buildship. In flutterflow after uploading image to firestore I receive link that looks like this: https://firebasestorage.googleapis.com/v0/b/dummyprojectname/o/users%2dummyuserID%2Fuploads%2F1712161901613077.jpg?alt=media&token=f33333f2-eac1-4d33-33c6-333f8e3a3333 and is accessible to my app and also publicly despise storage is set to not public. When I use "Upload File from External URL" GCS node, it returns link that looks like this. Its not accessible to my app. https://storage.cloud.google.com/dummyprojectname/users/dummyuserID/generated/2024-06-20_103635577.jpeg I guess I should use some of the Firebase nodes, but they dont provide option to upload file to my app bucket and generate link with access token that won't expire. Using GCS node generates inaccesible links. How to use buildship to store images for my flutterflow app? Thank you!
1 Reply
AI Support
AI Support3mo ago
To handle image uploads for your Flutterflow app using BuildShip and ensure the links are accessible, you can use Firebase Storage nodes. The links generated by Firebase Storage nodes will include the access token, making them accessible even if the storage is not set to public. Here's how you can do it: 1. Upload Image to Firebase Storage: Use the Firebase Storage Upload File node to upload images to your Firebase Storage bucket. 2. Generate Download URL: After uploading the image, use the Firebase Storage Get Download URL node to generate a download link with an access token. You can find detailed information on how to use Firebase Storage nodes in BuildShip here: Firebase Storage Nodes. This approach will ensure that the links generated are accessible to your app and include a token that won't expire, similar to the links you receive when uploading directly from Flutterflow. If you need more details on how to implement this, please refer to the BuildShip documentation: Firebase Storage Upload File and Firebase Storage Get Download URL. This should help you manage image uploads and generate accessible links for your Flutterflow app using BuildShip.