Does Google Chrome support custom MIME types?

Does Google Chrome support custom MIME types? In fact, I added my own MIME type to the Windows registry that Chrome must support. But Chrome cannot read it. I wrote one method in JavaScript. In this method, m calls Navigator.MimeType["<customMimeType>"] . If the script is executed in Firefox, it gives the correct result, but for chrome this statement does not work. How to create your own MIME type in Chrome? Is there any other way that plugins register their MIME type and Chrome detects this? can anyone provide a good resource for creating a plugin (not extension) for chrome?

+7
source share
3 answers

Sorry, but as far as I know, there is no compatibility in the current version of google chrome. You could use standard MIME instead of custom MIME.

+2
source

Using a standard MIME type would be a better option than an individual one. Chrome does not support customized MIME types. thanks

+1
source

Have you identified all types of parameters in the registry in windows?

Please review the old post to define a custom mime in windows link

If you missed the last line

 [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/atom+xml] "Extension"=".atom" 

here .atom is your type and application / atom + xml is your definition.

you have not defined a name or definition of the mime type, therefore you cannot judge this, please determine if this helps above.

0
source

All Articles