Blacklisted_files and wildcards

Nextcloud version (eg, 10.0.2): 12.0.2
Operating system and version (eg, Ubuntu 16.04): Centos 7
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.6
PHP version (eg, 5.6): PHP 7.0.22

We don’t want to sync *.pst files (to SMB/CIFS shares). It works fine if adding *.pst to ignored files in the client, but we would like to do this on the server.

I have added

'blacklisted_files' =>
  array (
    0 => '*.pst',
    1 => '*.PST',
  ),

to config.php but it doesn’t seem to work. PST-files are still synced.

Do anyone know if blacklisted_files support wildcards, and if so how do I enter them?

Thanks

Hmm, it seems the stars disappeared in my pasting. There is a star in the filenames as such: *.pst in my config-file.

An entry in blacklisted_files prevents the upload, not the synchronization.

https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html#all-other-configuration-options

Ahh, of course… Thanks!

The next question is then, how do I block certain filetypes from being synced?

Try the new ransomware protection app. You can define the filetypes you want to allow/block.