Andreass
Andreass4w ago

Cannot read properties of undefined (reading buffer) when uploading image

I am trying to upload a local image from flutterflow to firebase by calling the "Upload File to Firebase Storage (Authenticated)" API in buildship. For the API I use a Multipart body and I assign the "uploaded local file" value to the "image" variable which is also of type "uploaded file". It seems though, as if the image doesn't get send or has the wrong format (even though it is a jpg image). Any idea what I might do wrong here?
2 Replies
AI Support
AI Support4w ago
AI Support Bot Information
<@1269411930238488586> 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 Support
AI Support4w ago
AI Response
To troubleshoot the issue with uploading a local image from Flutterflow to Firebase using the "Upload File to Firebase Storage (Authenticated)" API, please follow these steps: 1. Ensure Multipart Form Data: Make sure that the API call uses multipart/form-data content type correctly. This includes properly encapsulating the file data as part of the form data. 2. Correct Variable Assignment: Verify that the file being uploaded is correctly assigned to the "image" variable and is in the correct format (like jpg or png). 3. Check Image Encoding: If the image format is correct but still not uploaded, ensure that the image data is properly encoded before it's sent to the server. This might involve converting the image to base64 or ensuring it's properly recognized as a file. 4. API Endpoint and Authentication: Confirm that the API endpoint for uploading the file to Firebase is correct and that authentication parameters (such as API tokens) are properly included in the request. 5. File Upload Node Setup: Ensure that the BuildShip node for file upload is correctly set up to accept multipart/form-data and is able to process the file correctly upon receiving the HTTP request. For detailed guidance, you can refer to the documentation for using the "Upload File to Firebase Storage (Authenticated)" API in BuildShip: Firebase File Upload Trigger If you’ve followed all these steps and still encounter issues, please provide specific error messages or logs, and consider seeking further support via in-app support in BuildShip.
BuildShip AI Support