Preview a file that has been uploaded from a previous Task via a File Upload control in that Request.
The File Preview control allows the Request participant to configure a file preview that has been previously uploaded to that Request via a File Upload control. After adding the control in the Screen to where to display the file preview, configure the Name setting value for the File Upload control from which to preview the file it uploaded to that Request.
This control is only available for the following Screen types:
Display type
Form type
See Screen Types.
For a documented example of using the File Preview control, see Preview or Download Multiple Files Uploaded from a Previous Task.
Follow these steps to add this control to the Screen:
Configure the File Preview control. See Settings.
Validate that the control is configured correctly. See Validate Your Screen.
When used in a published process, the File Preview control will display the file configured in its settings.
The File Preview controls supports the following file formats:
Text Documents (TXT, RTF)
Audio Files (MP3, AAC, M4A, WAV, AIFF, AIF)
Archive Files (ZIP, TAR, GZ, CAB, BZ2, TAR.GZ, TAR.BZ2)
Code Files (PHP, JS, JSON, SH, HTML, CSS)
Spreadsheet Files (XLS, XLSX, ODS)
Image Files (GIF, JPG, JPEG, PNG, SVG, TIFF, RAW, PSD)
PDF Documents (PDF, ODF, PS, EPS)
Presentation Files (PPT, PPTX, ODP)
Video Files (MP4, MOV, MPEG, WEBM, MPG, MP2, OGG, AVI, WMV, MKV)
Word Documents (DOC, DOCX, ODT)
The File Preview control has the following configurable settings in the Properties Panel:
Expand the Variable panel from the Properties Panel on the right to configure the following properties:
Expand the Configuration panel from the Properties Panel on the right to configure the following properties:
Expand the Advanced panel from the Properties Panel on the right to configure the following properties:
From the Controls Menu on the left, expand the Files category, and then locate the File Preview icon.
Drag and drop the control to the Screen Builder canvas. Existing controls in the Screen will adjust positioning based on where you drag the control.
Edit the default Variable Name setting value for this control if necessary. The Variable Name setting value represents data in this control during Requests. Ensure that the Variable Name setting value is a unique name from other controls in this Screen and contains at least one letter. This is a required setting.
Enter the Name setting value for the File Upload control from which to preview its file that was previously uploaded to this Request. Do not use mustache syntax when entering the File Upload control's Name setting. This setting has no default value.
Specify an expression that indicates the condition(s) under which this control displays. See Expression Syntax Components. If this setting does not have an expression, then this control displays by default.
Both: The control displays on both desktop and mobile devices. Both toggle keys are enabled by default.
Enter the value to represent this control in custom CSS syntax when in Custom CSS mode. As a best practice, use the same CSS Selector Name value on different controls of the same type to apply the same custom CSS style to all those controls.