MIME type aliases and icons


#1

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


#2

Have you also executed the occ command like described here:

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


#3

Yes, I have also executed the occ command.


#4

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


#5

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