I. Overview
1) In designing a report, you may need to upload and download files, which can be achieved by adding a File widget in a certain cell.
2) The File widget is a data entry widget. The widget only works in the Data Entry Preview and Enhanced Data Entry Preview modes. The parameter interface does not support the widget.
3) Firefox and Chrome browsers support selecting multiple files for upload in parallel, while IE browser only supports selecting one file for upload. Previously uploaded files will not be covered by latest uploaded ones.
4) The File widget should be used in combination with the File Upload and Download plug-in. Please contact our technical support (support@fanruan.com) to get the plug-in. For more information about plug-in installation, please see Install Plugins Manually.
5) For more information about other attributes, please see [Report Widget] Text Field.
You will Learn |
---|
|
II. Steps
1. Insert a File widget
1) Click B2, select [File] in the drop-down list of [Select Widget] and uncheck [Only support single file upload] in the right-hand pane.
2) Preview.
2. Check [Only support single file upload] and preview
3. File type
1) Select jpg, png and gif in the drop-down list of [File Type].
2) If you select a file in a non-specified format, an error message will pop up.
4. Size limit
1) Set the size limit to 1KB.
2) If the size of the image to be uploaded is 3KB, an error message will pop up.
5. Disk path
Note:Plugins need to be installed if you want to use the functions in this section.For details,see Upload and Download Files Plugin .
1) Select [Template] >[Data Entry Attribute]
2) Click on [+] and select [Custom Submit]. Select [Upload to Server] in the drop-down list.
3) Click on [+] to create a Submit Rule by inputting the following formula:
Disk path:“/AAAAA/NEW”
File: B2
File name: FILENAME(B2)
4) After uploading the file, you can find it by navigating to the specified disk path.