- Getting Started
- Demo apps
- How To
- Build Your First App
- Build a Mobile-Friendly App
- General User Experience Guidelines
- Upload a File Using the File Picker Control
- Download a File Using the File Picker Control
- Download a File Using a Link
- Download a File Using an Image Control
- Use Master Detail View
- Use Document Viewer
- Use Count With Choice Set Values
- Use Selected Values From a Table
- Embed Apps
- Embed Maps
- Hide Containers Using a Button
- Include MailTo Links
- Include Star Ratings
- Set External Context
- Work With Data Source and Value Bind
- Use the Send Interim Result Activity
- Public Apps
- 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 Values
- Rule: Start Process
- Rule: Upload File to Storage Bucket
- Rule: Get File From Storage Bucket
- Rule: Reset Values
- Rule: Create/Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Function: And, Or, Not
- Function: Concat
- Function: Contains
- Function: Count
- Function: EndsWith
- Function: If
- Function: IsBlank
- Function: Guid
- Function: Length
- Function: List
- Function: StartsWith
- Function: Sum
- Function: Sort
- Function: Now
- Function: Today
- Function: Time
- Function: Year
- Function: Month
- Function: Day
- Function: Hour
- Function: Minute
- Function: New
- Function: Lookup
- Function: Filter
- 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
- Leveraging Connections in your apps
- Application Lifecycle Management (ALM)
- UiPath First-Party Apps
- Basic Troubleshooting Guide
Apps User Guide
Upload a File Using the File Picker Control
Before including a file control into your application, you must have a storage bucket configured in Orchestrator and imported in your application.
For more information how to achieve this, see Referencing a Storage Bucket from Orchestrator.
- Go to the app where you want to add a file control.
- Go to Add control > Input control and add a new File Picker control to your app.
-
Configure the File Picker control according to your needs.
-
Pick a maximum file size.
-
Fill in the Allowed file types field using the following format:
.jpg, .pdf, .png
. -
Fill in the Helper text field with the text you want to be displayed on the control in runtime.
-
Configure the Other Properties section according to your needs.
-
Configure the style of the control according to your needs. For short tips on how to design an app, see General User Experience Guidelines.
-
- Go to Add a new control > Input control and add a new Button control underneath the File Picker control in your app and rename it Upload.
- On the new Button control, go to Events > Create Rule and create an Upload file to Storage bucket rule for this control.
-
Configure the Upload file to Storage bucket rule.
-
Add the Filepicker control in the File to upload field.
-
Add the Storage bucket imported during the Prerequisites.
-
To make sure that files do not get overwritten, we recommend keeping the Auto-generate box checked.
Note:If you want to create a name by yourself, uncheck the Auto-generate name box. You can create a specific file name format usingConcat
functions and add uniqueness to filenames using theguid
function. Make sure that filenames are unique so that they are not overwritten with files with the same name.You can use the following examples to generate a name:
concat(filenamewithouttype,"_",guid(),filetype)
concat("Photo","_",guid(),filetype)
- Set the uploaded file name to an app variable in the When completed section. To add the file name, drag and drop the Uploaded File Name in the Value field. This way the file name can be sent to automation or used for downloading the file.
-
Before including a file control into your application, you must have an entity in Data Service and imported in your application.
For more information how to achieve this, see Referencing an Entity in your App.
- Go to the app where you want to add a file control.
- Go to Add control > Input control and add a new File Picker control to your app.
-
Configure the File Picker control according to your needs.
-
Pick a maximum file size.
-
Fill in the Allowed file types field using the following format:
.jpg, .pdf, .png
. -
Fill in the Helper text field with the text you want to be displayed on the control in runtime.
-
Configure the Other Properties section according to your needs.
-
Configure the style of the control according to your needs. For short tips on how to design an app, see General User Experience Guidelines.
-
- Go to Add a new control > Input control and add a new Button control underneath the File Picker control in your app and rename it Upload.
- On the new Button control, go to Events > Create Rule and create an Create/Update Entity Record rule for this control.
-
Configure the Create/Update Entity Record rule. Make sure to add the entity containing the images (configured during Prerequisites) in the Which entity record should be created/updated field.
-
If you have a data context configured, you can also reference it in the Create/Update Entity Record rule. For more information on data context, see the About Data Context and Using Data Context pages.