apps
2024.10
true
- Getting Started
- Before You Begin
- How To
- Access the production URL of an app
- Build a mobile-friendly app
- Embed Apps
- Embed Maps
- Set External Context
- Use arrays to populate Dropdown, Multiselect dropdown, and Radio Button controls
- Use DataTable with Table and Edit Grid controls
- Uploading and downloading a file using the File Uploader control
- Downloading a file using an Image control
- Downloading a file using a URL
- Use Input Mask
- Notifications
- Using VB Expressions
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Value
- Rule: Start Process
- Rule: Reset Values
- Rule: Upload File to Storage Bucket
- Rule: Download File From Storage Bucket
- Rule: Create Entity Record
- Rule: Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Rule: Trigger workflow
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Leveraging Media in your app
- Leveraging Actions in your app
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide
Uploading and downloading a file using the File Uploader control
Apps User Guide
Last updated Nov 11, 2024
Uploading and downloading a file using the File Uploader control
This example shows how you can use File Uploader with a storage bucket and with a file field of an entity.
- In your app, add a Storage Bucket and a Data Service entity that has file fields.
- Add a File Uploader and a Button control.
- Create a variable of type AppsFile and name it "SB_file_var'. Use this variable to store the file downloaded from the storage bucket.
- Add the Upload file to Storage Bucket rule to the Clicked on event of the button control.
- Add the Download file from Storage Bucket rule to the Clicked on event of the button control.
- In the Storage bucket field, reference the Orchestrator storage bucket that you previously added to your app.
- In the File Name (with extension) field, write the name of the file your users should download.
- In the Assign file to app variable, reference the previously created variable "SB_file_var".
- Optionally, in the When completed field, you can add a Show Message rule to inform you the downloading completed successfully.
- Add a Label control to your app.
- Run your app and upload a file using the File Uploader control. Click the button.
A success message should appear at the top of your screen informing you the upload/download completed successfully. Now check the storage bucket in Orchestrator and you should see the file you uploaded using the File uploader control.
Simultaneously, clicking the button downloaded the file indicated in the Download file from Storage Bucket rule to your local device and stored its data to a variable. The Label control displays the name of the downloaded file.