Download File From Server Action Advanced Customisations

  1. Dynamic File Path and ID: Different files can be downloaded dynamically based on the user or situation.
  2. Request Confirmation: Confirmation can be requested from the user before downloading the file.

Steps

Open your project on the

  • Kuika platform and go to the UI Design module.
  • Select the file download button.
  • Add the Device > Download File From Server action from the + ADD ACTION menu.
  • Click on the three dots (⋮) icon in the upper right corner of the action you added.
  • Select the Add Confirmation option from the menu that opens.
  • Write the confirmation message you want to show to the user in the ‘Confirmation Message’ field. For example: ‘Are you sure you want to download the file?’
  • When the button is clicked, this confirmation message will be displayed in a pop-up. If the user clicks ‘Yes,’ the file download will start; if they click ‘No,’ the process will be cancelled.
  • Post-Download Notification: A success message can be displayed to the user when the process is complete.

Configuration in the Navigate Action

  • Add a new action immediately after the Download File From Server action. + Add Action > Navigate
  • To Screen: DownloadSuccessPage (or the name of the screen containing the success message in your project)
  • Open As:
    • Current Page → The page changes completely, or
    • Modal → Opens on top of the current screen (size and closability can be adjusted)
  • Width / Height: (If Modal, e.g., ‘400px’ / ‘200px’)
  • Closable: true (If Modal, the user can close the message)
  • Execute Page Init Actions After Closed: True or false as needed
  • Page Content Example (DownloadSuccessPage)
  • Title: Success!
  • Message Label: The success message text above
  • If desired, buttons such as ‘Return to Home Page’ or ‘Download Again’ can be added to guide the user.

Technical Risks

  • Authority Control: File download permissions must be set appropriately.

The ‘Download File From Server’ action enhances user experience and increases the flexibility of your application by enabling files stored on the server to be downloaded securely and easily to the user's device in Kuika applications.