Configure Allowed File Types for Document Management
ADONIS allows the import and management of external files in the database (DMS functionality). For this purpose, you can define a whitelist of file extensions. Only file types that are specified in the whitelist may be uploaded.
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
ADONIS15_0.warwith a file archiver. Edit the file
WEB-INF/web.xmlwhich 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.
::: <context-param> <description>Extensions allowed for uploading 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,
tip xml,bpmn</param-value>*</init-param>...</servlet> ::: <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,
The ADONIS web application running on the web server has to be restarted if these settings are changed. Otherwise the changes will not become effective.