In the UI Design module, click the Add Action button on the right side and select the Download File From Bucket action.
2. Specifying Parameters
Key Name (String – required): The unique name of the file in the bucket. Example: user_123/avatar.png
Can usually be assigned as Action Result, Current, Form Component, Screen Input, or Fixed.
Bucket Name (String – required): You can only select AWS or Google as the cloud provider.
File Name (String – required): The name and extension of the downloaded file to be saved on the client side. Example: my_avatar.png
Encrypt (Boolean – optional): If bucket encryption is used, this parameter can be used for verification during the download process.
true → Encryption check is performed.
false → Encryption check is not performed.
Running and Testing the Action
Run the action in Preview mode.
If successful, the specified file is downloaded to the client or becomes available in the background.
If unsuccessful, the bucket name, key, filename, or connection information should be checked via the error message.
Sample Test: For AWS S3, you can verify that the file is downloaded using the command aws s3 cp s3://kuika-media-storage/user_123/avatar.png ./my_avatar.png in the terminal.