Configure Allowed File Types for Document Management#

ADOIT allows the import and management of external files in the database (DMS functionality). If this functionality is deactivated, references to files in the file system can be created instead. For both of these purposes, you can define a whitelist of file extensions. Only file types that are specified in the whitelist may be uploaded or referenced.

For security reasons, only a very restricted set of file types may be added to the whitelists by default. To configure what file types are eligible, you need to customize a configuration file. In order to do so:

  • Open the folder “<Tomcat installation>/webapps“ and open the file ADOIT12_0.war with a file archiver. Edit the file WEB-INF/web.xml which can be found inside.

  • In both of the following sections, the parameter <param-value> specifies a comma separated list of allowed file types. Change the value of this parameter in these sections as needed. Save the changes afterwards.

Section 1:

files</description><param-name>allowedExtensions</param-name><param-value>doc,docx,ppt,pptx,xls,xlsx,csv,txt,pdf,rtf,png,jpg,gif,jpeg,bmp,zip,rar,7z,axr,

<context-param> *<description>Extensions allowed for uploading

xml,bpmn</param-value>* </context-param> ::: Section 2: :::title :::

<servlet>

<servlet-name>View Upload Servlet</servlet-name>

<servlet-class>com.boc.axw.core.upload.ViewUploadServlet</servlet-class>

<init-param>

<param-name>allowedExtensions</param-name>

<param-value>doc,docx,ppt,pptx,xls,xlsx,csv,txt,pdf,rtf,png,jpg,gif,jpeg,bmp,zip,rar,7z,axr, xml,bpmn</param-value>

</init-param>

...

</servlet> :::

important

The ADOIT web application running on the web server has to be restarted if these settings are changed. Otherwise the changes will not become effective.