MIME type aliases and icons

Hi,
I've created a custom MIME type for *.test files as well as a couple of custom icons (png + svg). But instead of showing these custom icons for my *.test files, ownCloud shows the default "text" icons. I've defined the MIME type as "text/test".

owncloud/config/mimetypemapping.json:
{
"test": ["text/test"]
}

owncloud/config/mimetypealiases.json:
EMPTY

Custom icons:
/var/www/html/owncloud/core/img/filetypes/text-test.png
/var/www/html/owncloud/core/img/filetypes/text-test.svg

Have you also executed the occ command like described here:

https://doc.owncloud.org/server/9.1/admin_manual/configuration_mimetypes/mimetype_aliases.html

Yes, I have also executed the occ command.

Is someone here who could confirm that this feature actually works (in ownCloud 9.1)?

Edit:
It works when defining a complete new mime type. the json file hast to be located in OC-root/config/.

don't forget to call
./occ maintenance:mimetype:update-db
./occ maintenance:mimetype:update-js

1 Like