Hey there! In this guide, we'll walk through the steps to upload images from your Flutter Flow application to your Xano database. We'll cover how the API works in Xano and how to set it up in Flutter Flow, followed by a quick demo.
In your Xano project, create a new API with a single input of the file resource type. This is the standard input type for uploading content into Xano.
Add a "Create Image from File" action to generate metadata for the uploaded images.
Finally, add the image to your desired table (e.g., "images" table) using the "Add Record" action.
Now, let's jump into Flutter Flow and set up the image upload functionality.
In your Flutter Flow app, add a button or any other UI element that will trigger the image upload process.
Open the Action Flow editor for the UI element you added.
Add the "Upload Media to Local File" action. Here, you can specify options like allowing only photos, photos and videos, sourcing from camera or gallery, etc.
Add the "API Call" action to call your Xano API endpoint.
In the API Call action settings:
POST.image) with the type set to local file.multi-part.file).image variable you defined earlier.image variable is selected for the "Upload Media to Local File" action.With the setup complete, you can now test the image upload functionality.
That's it! You've successfully uploaded an image from your Flutter Flow application to your Xano database. If you have any questions or need further assistance, feel free to leave a comment, visit the Xano community, or reach out to our support team via the chat inside Xano.
Join 100,000+ people already building with Xano.
Start today and scale to millions.
Start building for free