Adding UI Elements for Storage
Learn how to create a UI design to display selected images and upload them.
User interface widgets
Our goal is to build a straightforward UI that will eventually work with our tree planting forum. We must consider how an image is downloaded and uploaded to Firebase Storage when developing this UI.
Here is a list of actions we need to take:
Select an image: The user can choose an image to upload from the local storage.
Preview image: We display the image in the UI so the user can confirm the selected image.
Upload image: The user uploads the photo to Firebase Storage after confirmation.
Display all images: Finally, we display all the images that are stored in Firebase Storage.
Add image page
We’ll start by creating a UI that provides “Select image,” “Download,” and “Submit” buttons to perform the corresponding actions by the user.
Get hands-on with 1400+ tech skills courses.