Skip to content

Latest commit

 

History

History
105 lines (62 loc) · 4.08 KB

file-manager.md

File metadata and controls

105 lines (62 loc) · 4.08 KB
title url tags
File Manager
/refguide8/file-manager/
studio pro
file manager
file widget
widget

{{% alert color="warning" %}}The file manager widget is not supported on native mobile pages.{{% /alert %}}

1 Introduction

A file manager is used to upload and/or download files.

{{< figure src="/attachments/refguide8/modeling/pages/file-widgets/file-manager/file-manager.png" alt="File Manager" class="no-border" >}}

It must be placed inside a data view connected to the entity System.FileDocument or a specialization thereof.

{{% alert color="info" %}} When uploading a file through the file manager, the FileDocument object will be committed immediately. {{% /alert %}}

2 Properties

An example of file manager properties is represented in the image below:

{{< figure src="/attachments/refguide8/modeling/pages/file-widgets/file-manager/file-manager-properties.png" alt="File Manager Properties" width="250" class="no-border" >}}

File manager properties consist of the following sections:

2.1 Common Section {#common}

{{% snippet file="/static/_includes/refguide8/common-section-link.md" %}}

2.2 Design Properties Section {#design-properties}

{{% snippet file="/static/_includes/refguide8/design-section-link.md" %}}

2.3 Editability Section {#editability}

{{% snippet file="/static/_includes/refguide8/editability-section-link.md" %}}

2.4 General Section {#general}

2.4.1 Type

The Type property indicates how the end-user will be able to use the file manager.

Value Description
Upload The file manager can only be used to upload a file.
Download The file manager can only be used to download a file.
Both (default) The file manager can be used to both upload and download a file.

2.4.2 Max File Size (MB)

Max file size (MB) determines the maximum size of files (in megabytes) that can be uploaded.

Default: 5

2.4.3 Allowed Extensions

You can specify file extensions that users are allowed to upload. If no extension is specified, all file extensions are allowed. Separate multiple extensions by a semi-colon, for example, txt;doc

If a file with an extension that is not allowed is selected, a system text for File manager/image viewer > Error: incorrect file extension will be shown below the file manager.

{{% alert color="warning" %}} The feature to allow extensions is not meant as a security feature, as the file manager widget does not check the contents of a file to see if they match the provided extension. For more information, see the Scanning Uploaded Files for Malicious Content section of How to Implement Best Practices for App Security. {{% /alert %}}

{{% alert color="warning" %}} Although it is not in the list of approved file extensions, File Manager erroneously allows the .xls extension. This happens when the .xlsx extension is in the accepted list and an .xls file is selected from the All files option. This is due to your operating system's way of handling the All files option, and it cannot be changed. {{% /alert %}}

2.4.4 Show File in Browser

Show file in browser indicates whether a file will be shown in the browser instead of being downloaded.

Default: False

2.5 Label Section {#label}

{{% snippet file="/static/_includes/refguide8/label-section-link.md" %}}

2.6 Visibility Section {#visibility}

{{% snippet file="/static/_includes/refguide8/visibility-section-link.md" %}}

3 Read More