[MimeType Get] Discussion

[MimeType Get] Discussion

  
Forge Component
(2)
Published on 2011-05-09 by Hugo Pinheiro
2 votes
Published on 2011-05-09 by Hugo Pinheiro
Hi,

I noticed this extension.
Can you explain a bit more how it resolves the mimetype, is it just the last 3 characters?
and which list are you using?

Hello Joost,

Yes is based on the last 3 characters, with them you create a RegisterKey and you can retrieve the mime type by using: RegisterKey.GetValue("Content Type").

I hope that helps

Regards,
Hugo Pinheiro
Hi,

I believe that in that case you need to install the software otherwise the key won't be on the registry.

You'll need to install MSOffice in order to have the .ppt, .pptx, .doc, .docx etc... in the registry, right?


RC
Maybe this extension could use the MimeType list  maintained by The Apache Software Foundation:

http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x/docs/conf/mime.types

Regards,
Matthias


Hello,

Thanks for the help, I will try to use the Mime Type List from the Apache on this component.

Regards,
Hugo Pinheiro