Usage Scenario: User Avatar File Download

In a social media application, when a user wants to view their profile picture:

  • The avatar file is retrieved from the Bucket using the Key Name.
  • The file is downloaded to the client or loaded for preview using the File Name parameter.
  • This allows the user to quickly view their old or new avatar.

Step-by-Step Usage

  1. File Check: The Object Key of the avatar is retrieved on the user profile screen.
  2. Execute Download File From Bucket Action: It is linked to the OnClick event.
    • Parameters:
      • Key Name: user_123/avatar.png
      • Bucket Name: You can only select AWS or Google as the cloud provider.
      • File Name: my_avatar.png
      • Encrypt: false
  3. Next Actions:
    • If the file is downloaded successfully: It is displayed on the preview screen.
    • If the download fails: The user is shown the warning “File could not be downloaded, please try again.”