Add copy-pastable regexp

This commit is contained in:
oparoz
2016-09-05 16:33:07 +02:00
committed by Morris Jobke
parent 83a8996718
commit ac758950f7

View File

@@ -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