-
Notifications
You must be signed in to change notification settings - Fork 48
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change to |
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove |
||
sudo -u www-data php occ files:scan --all | ||
|
||
## Development setup | ||
|
There was a problem hiding this comment.
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 documentationalso refer to
https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#maintenance-commands