Usage Scenario: User Downloads a File to their Device
A user wants to download a file (for example, a marketing analysis) to their device by clicking the “Download” button within the application. In this scenario, Kuika's Download File action saves the file directly to the user's device and the user can view the file offline.
Adding a Download File Action to the File Download Area
Log in to the Kuika platform.
Open your project from the Apps screen.
Switch to the UI Design module.
Add a Button (e.g. “Download Marketing File”) component from the left edge.
Select the button and click the + ADD ACTION menu from the Properties panel on the right edge.
Select the OnClick → Device → Download File action.
Configuring the Download File Action
In the action configuration window that opens, define the following fields:
File Name: “marketing2025.pdf” (the name under which the file will be saved to the user)
Data: data.base64File (file data received from the server and in Base64 format should be linked here)
The file must be provided in Base64 format. If the file is to be downloaded from a URL, that file data must be converted to Base64 and used.
Click the SAVE button to complete the process.
User Experience after File Download
When the user presses the “Download File” button:
The specified file is saved in the device's default Downloads folder.
The user can open the file offline, share it or store it on their device.
Each device can view the file with a different opener according to its system (e.g. PDF reader, gallery, media player).