-
Notifications
You must be signed in to change notification settings - Fork 45
Update Mimetype Dectection #105
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
Conversation
The directions for setting the mimetype is the readme.md is incorrect and does not work on Nextcloud 16. I have edited.
funwhilelost
left a comment
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.
Thank you! I found this super helpful for my NC16 install.
|
👎 This should not work see the schema differences between The example is of the same scema as |
|
|
||
| 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Change to mimetypemapping.json
|
To summerize a little bit: So to get everything to work there are two options:
When setting up option 1 one needs to run the following two commands:
When setting up option 2 you only need to run (The command Source: Nextcloud Server docs and manual testing This would close #92 , #116 and other mimetype related issues. |
| 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). |
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 documentation
also refer to
https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/occ_command.html#maintenance-commands
| 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 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
|
Could you help me testing #124? Hopefully that will make the manual change to |
The directions for setting the mimetype is the readme.md is incorrect and does not work on Nextcloud 16. I have edited.