Use Case: User Selects and Uploads a Photo from the Gallery

In a social media application, the user wants to select a photo from the gallery to update their profile or make a post. When the user clicks the ‘Select Photo’ button, they can select a photo from the device gallery, edit it, and upload it to the application.

Adding a Photo Selection Action

  • In the Properties panel, enter ‘Select Photo’ in the Label section of the button.
  • Select the button and add the OnClick → Device → Photos From Gallery action from the + ADD ACTION menu.
  • Configure the Quality parameters according to your needs.
  • Click the SAVE button to complete the process.