diff --git a/admin_manual/configuration_files/files_access_control.rst b/admin_manual/configuration_files/files_access_control.rst index 44f50a0b3..087b84ad9 100644 --- a/admin_manual/configuration_files/files_access_control.rst +++ b/admin_manual/configuration_files/files_access_control.rst @@ -49,6 +49,20 @@ This example blocks access to any folder with the tag ``Confidential``. .. figure:: images/files_access_control_collaborative_tags.png :alt: Deny access based on collaborative tag +Prevent uploading of specific files +------------------------- + +It's possible to prevent specific files from being uploaded to Nextcloud. You +simply need to define a rule based on the mimetype and our powerful access control +engine will block any attempt to upload the file. The safest way to define the rule +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. + + .. figure:: images/files_access_control_block_mimetype.png + :alt: Prevent upload based on mimetype + .. _available-rules-label: Available rules diff --git a/admin_manual/configuration_files/images/files_access_control_block_mimetype.png b/admin_manual/configuration_files/images/files_access_control_block_mimetype.png new file mode 100644 index 000000000..1dc9b7b1c Binary files /dev/null and b/admin_manual/configuration_files/images/files_access_control_block_mimetype.png differ