Skip to main content
Version: 1.36.0

Attachments Properties

Use the following properties to set up the file uploads.

To get a list of the available system properties, navigate to System Properties → All Properties.

allowed_upload_file_extension​


Specify the file types that are allowed for uploading. If the value is an empty array, then all file formats are available.

Type: String

Default value: []

Example value: If the property has the ["jpeg","png","pdf"] value, the files of other types are ignored.

max_file_size_upload​


Specify the maximum file size (in bytes) that can be uploaded.

warning

The hardcoded limit is 128 MB. A file of a size exceeding this value cannot be uploaded, even if the parameter value is greater than 134217728 (128 MB).

Type: Integer

Default value: Not defined

Example value: 20971520

max_files_upload_count​


Specify the maximum number of files that can be uploaded in parallel. The maximum allowed value is 100.

If a user specifies an invalid value, the maximum allowed value will be applied.

The limit applies only to the number of files uploaded in parallel and does not affect the number of files a user can upload using any available method.

Type: Integer

Default value: Not defined

Example value: 20

platform.attachments.acl.enabled​


Set the value to false to disable the ACL rule check when an attachment is retrieved via a direct storage link, downloaded via /v1/attachments/download/{id}, or read using the readBase64 method. Other values do not disable the check. The file existence is checked regardless of the value.

The property does not affect the getAttachmentUrlById method, copying attachments, or the set of attachments displayed in the widget and in the list of the Attachment (sys_attachment) table. If the value is false, downloading a file from the widget or as an archive via /v1/attachments/download-all is performed without checking access rights.

Type: Boolean

Default value: true

Example value: false

s3.presigned.link.lifetime​


Specify the predefined lifetime of the S3 downloading link in minutes.

Type: Integer

Default value: 60

Example value: If the property value is set to '0', then the link lifetime will be equal to the default one (60 minutes).