Assign files to another app

Nextcloud version (eg, 18.0.2): 20.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.4
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41
PHP version (eg, 7.1): 7.4.3

The issue you are facing:

We have the problem that the app “Viewer” opens all the videos and since the player is (in my opinion) very badly programmed we would like to use the normal app “Video player” for the videos on the cloud.

But if we deactivate the app “Viewer” no pictures will be shown.

The problem is that we can’t disable the app “Viewer” only for videos and allow the app “Video player” for videos.
There is always something overwriting itself.

The problem with the app “Viewer” is that the player - including the browser and partly the server hangs.
The processes of Apache2 explode and the browser shows a loading screen. This takes forever and is only gone after you reload the website or after you close the browser.

The server can actually handle all these requests and is strong enough. On a normal day we have almost hundreds of requests for video files, so we can’t restart the server/Apache2 every time or hope that the player will be able to do so this time.

We want to display pictures with the app “Viewer”, but still play the videos with the app “Video player”.

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Play Videos with the App “Viewer”

The output of your Nextcloud log in Admin > Logging:


The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => '-',
  'passwordsalt' => '-',
  'secret' => '--',
  'trusted_domains' =>
  array (
    0 => '',
  'datadirectory' => '---',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => '-',
  'dbname' => '-',
  'dbhost' => '-',
  'dbport' => '',
  'dbtableprefix' => '-',
  'mysql.utf8mb4' => true,
  'filelocking.enabled' => false,
  'skeletondirectory' => '',
  '' => false,
  'dbuser' => '--',
  'dbpassword' => '-',
  'installed' => true,
  'sharing.interal_shares_accepted' => true,
  'integrity.check.disabled' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'localhost',
    'port' => 6379,
  'theme' => '',

The output of your Apache/nginx/system log in /var/log/____:


The error is unfortunately very bad, because we are currently not able to work properly with videos and pictures.