upload.exclude_file_pattern

This option can be used to exclude all file names matching the specified regexp pattern. This enables you to for example deny specific file extensions from being uploaded.

Example of usage in the config.php file

$mcImageManagerConfig['upload.exclude_file_pattern'] = "/^notthis$|^notthat$/i";

Example of usage in the Web.Config file

<add key="upload.exclude_file_pattern" value="/^notthis$|^notthat$/i" />

Example of usage in a mc_access file

upload.exclude_file_pattern=/^notthis$|^notthat$/i