Example: Preview or Download Multiple Files Uploaded from a Previous Task
Follow an example to either preview or download multiple files in a Screen that have been uploaded from a previous Task in that Request.
Intended audience: Process designers, Web designers, graphic designers, software developers, coding engineers
Tags: Loop control; File Upload control; File Preview control; File Download control; Screen design
In the Screen of the Task from which to preview or download those multiple files, use a File Preview control or File Download control, respectively, with a Loop control.
See the following sections regarding how to view and/or configure each control used in this example:
Follow these steps to locate applicable setting information for the File Upload control in this example:
- 1.Locate the File Upload control from the Screen page designed to upload multiple files. This Screen is used in the previous Task of the Request that the Request participant uploads those files.
- 2.Note the Variable Name setting value for that File Upload control. This example uses the value
MultiFileUploadControl
.
- 1.
- 2.
- 3.In the Variable Name setting of the Loop control, enter the Variable Name setting value from the File Upload control. For this example, enter
MultiFileUploadControl
.
- 1.
- 2.This value is required because the Request data stores each file in within a JSON array named from the File Upload control's Variable Name setting value; within this JSON array, each file uploaded to the File Upload control is stored in a JSON object with a unique file ID referenced by the key name
file
. This value is not case sensitive.
- 1.
- 2.
- 3.In the Variable Name setting of the Loop control, enter the Variable Name setting value from the File Upload control. For this example, enter
MultiFileUploadControl
. These are the same settings as for the Loop control that contains the File Preview control.
- 1.
- 2.From the Name setting, enter
file
.
Last modified 1mo ago