Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Mimetype Dectection #105

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be stable to point always to the latest documentation

also refer to
https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#maintenance-commands


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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to mimetypemapping.json

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:

Expand All @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove update-js and files:scan in favor of sudo -u www-data php occ maintenance:mimetype:update-db --repair-filecache as stated in my comment

sudo -u www-data php occ files:scan --all

## Development setup
Expand Down