From ac758950f7e2fad6469e35f5d7b7e06bb363ded7 Mon Sep 17 00:00:00 2001 From: oparoz Date: Mon, 5 Sep 2016 16:33:07 +0200 Subject: [PATCH] Add copy-pastable regexp --- admin_manual/configuration_files/files_access_control.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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