From 634df10c23242a9f5d57a01c1674e5cac8e9993c Mon Sep 17 00:00:00 2001 From: Maxwell Gottlieb Date: Mon, 3 Jun 2019 13:15:58 -0500 Subject: [PATCH] Update Mimetype Dectection The directions for setting the mimetype is the readme.md is incorrect and does not work on Nextcloud 16. I have edited. --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b6ff350..8df6f03 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ To update to a new version, simply repeat these steps. Unfortunately, apps can't declare new mimetypes on the fly. To make Keeweb work properly, you need to add a new mimetype in the `mimetypemapping.json` file (also see the Nextcloud manual at -https://docs.nextcloud.com/server/14/admin_manual/configuration_mimetypes/index.html). +https://docs.nextcloud.com/server/16/admin_manual/configuration_mimetypes/index.html). -To proceed, create the file `/config/mimetypemapping.json` (in the `config/` folder at -Nextcloud’s root directory; the file should be stored next to the `config.php` +To proceed, create the file 'mimetypealiases.json' (in the `config/` folder at +Nextcloud’s root web directory; the file should be stored next to the `config.php` file) or modify the existing one. Make sure, it contains at least the following lines: @@ -33,9 +33,10 @@ lines: } ``` -After that, run the following command in the root directory of Nextcloud on the server +After that, run the following commands in the root directory of Nextcloud on the web server (if needed, replace `www-data` with the actual user which is used by the webserver): + sudo -u www-data php occ maintenance:mimetype:update-js sudo -u www-data php occ files:scan --all ## Development setup