A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Conflicting/incorrect MIME type for a file extension



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old April 19th 18, 12:26 AM posted to alt.windows7.general
JJ[_11_]
external usenet poster
 
Posts: 744
Default Conflicting/incorrect MIME type for a file extension

I was writing a VBScript to check the integrity of the system's MIME type
database in the registry, and found out that there are several conflicts.

For example, the `*.cer` file is both registered as
`application/x-x509-ca-cert` and `application/pkix-cert`. i.e.:

File extension:
[HKEY_CLASSES_ROOT\.cer]
@="CERFile"
"Content Type"="application/x-x509-ca-cert"

MIME database:
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/pkix-cert]
"Extension"=".cer"

I understand that a file extension may have more than one MIME type. For
example, the `*.3gp` file extension. Its MIME type can be either
`video/3gpp` or `audio/3gpp`, depending on the file contents. This is
correct since the MIME type can not be determined by the file extension name
alone.

So, which one is the correct MIME for the above `*.cer` file extension? Is
it both also? i.e. it depend on the file data.

Other conflicting MIMEs whoch are found by the script are listed below.

..m3u: ext=audio/x-mpegurl, db=audio/mpegurl
..sit: ext=application/x-stuffit, db=application/x-sit
..zip: ext=application/zip, db=application/x-zip-compressed

Are all of these associations correct?

I also found that the `*.aac` file extension is registered as having
`audio/vnd.dlna.adts` MIME type, instead of `audio/aac`. AFAIK,
`audio/vnd.dlna.adts` is for `*.adts` file extension.
Ads
  #2  
Old April 19th 18, 01:46 AM posted to alt.windows7.general
Bob_S[_2_]
external usenet poster
 
Posts: 149
Default Conflicting/incorrect MIME type for a file extension

"JJ" wrote in message ...

I was writing a VBScript to check the integrity of the system's MIME type
database in the registry, and found out that there are several conflicts.

For example, the `*.cer` file is both registered as
`application/x-x509-ca-cert` and `application/pkix-cert`. i.e.:

File extension:
[HKEY_CLASSES_ROOT\.cer]
@="CERFile"
"Content Type"="application/x-x509-ca-cert"

MIME database:
[HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/pkix-cert]
"Extension"=".cer"

I understand that a file extension may have more than one MIME type. For
example, the `*.3gp` file extension. Its MIME type can be either
`video/3gpp` or `audio/3gpp`, depending on the file contents. This is
correct since the MIME type can not be determined by the file extension
name
alone.

So, which one is the correct MIME for the above `*.cer` file extension? Is
it both also? i.e. it depend on the file data.

Other conflicting MIMEs whoch are found by the script are listed below.

.m3u: ext=audio/x-mpegurl, db=audio/mpegurl
.sit: ext=application/x-stuffit, db=application/x-sit
.zip: ext=application/zip, db=application/x-zip-compressed

Are all of these associations correct?

I also found that the `*.aac` file extension is registered as having
`audio/vnd.dlna.adts` MIME type, instead of `audio/aac`. AFAIK,
`audio/vnd.dlna.adts` is for `*.adts` file extension.



You may not have found this listing but it does answer your question: Yes
it is registered as both.

https://www.sitepoint.com/mime-types-complete-list/
--


Bob S.

  #3  
Old April 20th 18, 12:47 PM posted to alt.windows7.general
JJ[_11_]
external usenet poster
 
Posts: 744
Default Conflicting/incorrect MIME type for a file extension

On Wed, 18 Apr 2018 20:46:47 -0400, Bob_S wrote:

You may not have found this listing but it does answer your question: Yes
it is registered as both.

https://www.sitepoint.com/mime-types-complete-list/


Oh, OK. Thanks.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 05:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.