Kentico CMS 6.0 Developer's Guide

Form files settings

Form files settings

Previous topic Next topic Mail us feedback on this topic!  

Form files settings

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

Files may be submitted as part of form records, typically when a form contains an uploader type field (Upload file form control). In Site Manager -> Settings -> System -> Files, you can adjust the following settings related to files submitted through forms and their storage in the file system:

 

Storage

Custom form files folder

Folder where files uploaded via forms are stored. You can use:

 

physical disk path - e.g. c:\myfiles\

virtual path - ~/UploadedFiles

UNC path - \\server\folder

 

If no value is entered, the files are stored under the ~/<site code name>/BizFormFiles/ folder.

Use site-specific subfolders for custom  form files folder

This setting is only applied when a Custom form files folder is configured. If enabled, attachment files will be stored in a sub-folder named according to the code name of the site where the form is placed, i.e. <custom form files folder>/<site code name>. It is useful for better orientation in files when multiple sites are running in the system.

Security

Upload extensions

Specifies which extensions are allowed for uploaded files in general, including forms. You can restrict the types of uploaded files by entering a limited list of extensions separated by semicolons, for example: gif;jpg;doc;pdf

 

This allows you to block users from uploading potentially dangerous files, such as ASPX scripts. If no value is specified, uploading will be allowed for all file types.

 

Allowed extensions can also be set for individual uploader form fields. Each field of this type has an Extensions setting, which can be configured on the Fields tab of the given form. You may either have the field inherit from the site settings or specify a different list of extensions.