I've already read about mime types in wordress and how to add them, but I can't find any documentation about the correct type
of files. For e.g. after a lot of research I find out that the epub extension has a application/epub+zip file type, but how to get other unknown files like .blend
or .xcf
to work?
The following pseudocode illustrates the problem:
function custom_mime_types($mime_types){
//Adding unknown extension
$mime_types['unknownextension'] = 'typeoffile';
return $mime_types;
}
add_filter('upload_mimes', 'custom_mime_types', 1, 1);
Is there a Documentation about it?