Mimetype AliasesΒΆ
ownCloud allows you to create aliases for mimetypes, so that you can display custom icons for files. For example, you might want a nice audio icon for audio files instead of the default file icon.
By default ownCloud is distributed with
owncloud/resources/config/mimetypealiases.dist.json.
Do not modify this file, as it will be replaced when ownCloud is updated.
Instead, create your own owncloud/config/mimetypealiases.json
file with your custom aliases. Use the same syntax as in
owncloud/resources/config/mimetypealiases.dist.json.
Once you have made changes to your mimetypealiases.json, use the occ
command to propagate the changes through the system. This example is for
Ubuntu Linux:
$ sudo -u www-data php occ maintenance:mimetype:update-js
See Using the occ Command to learn more about occ.
Some common mimetypes that may be useful in creating aliases are:
image- Generic imageimage/vector- Vector imageaudio- Generic audio filex-office/document- Word processed documentx-office/spreadsheet- Spreadsheetx-office/presentation- Presentationtext- Generic text documenttext/code- Source code