diff --git a/admin_manual/configuration_files/files_access_control.rst b/admin_manual/configuration_files/files_access_control.rst index 087b84ad9..78a2af135 100644 --- a/admin_manual/configuration_files/files_access_control.rst +++ b/admin_manual/configuration_files/files_access_control.rst @@ -58,7 +58,8 @@ engine will block any attempt to upload the file. The safest way to define the r is to use a regular expression, as it will help you cover all the known media types used for the type of file you're trying to block. -The following example prevents zip files from being uploaded. +The following example prevents zip files from being uploaded by using the regular +expression: ``/^application\/(zip|x-zip-compressed)$/i`` .. figure:: images/files_access_control_block_mimetype.png :alt: Prevent upload based on mimetype