# MIME-type of image plugin

**URL:** <https://forum.servoy.com/t/mime-type-of-image-plugin/5773>\
**Category:** Classic Servoy\
**Created:** [April 17, 2006, 5:24pm UTC](https://forum.servoy.com/t/mime-type-of-image-plugin/5773 "2006-04-17T17:24:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [April 17, 2006, 5:24pm UTC](https://forum.servoy.com/t/mime-type-of-image-plugin/5773/1 "2006-04-17T17:24:42Z")

</div>

Hi,

I use the image-plugin to determine the MIME-type of a file.

if I select an EXCEL file (xls) it says: program/msword

Is this something that can be updated?? because we attach an icon at every file-type.

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [April 22, 2006, 10:33am UTC](https://forum.servoy.com/t/mime-type-of-image-plugin/5773/2 "2006-04-22T10:33:46Z")

</div>

Hi Harjo,

I realize this is not what you want to hear but can’t you just take the type from the extension (in this case). When the extension is .xls you know the type or do I miss something here?

I am not sure this is something Servoy can solve. Might be a Java thing but that’s really just guessing…

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 22, 2006, 10:06pm UTC](https://forum.servoy.com/t/mime-type-of-image-plugin/5773/3 "2006-04-22T22:06:06Z")

</div>

not possible  
Alle MS Office things have the same magic bytes (the first bytes of the file) and that is what we look at in the image plugin file type guesser.

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [April 23, 2006, 12:27pm UTC](https://forum.servoy.com/t/mime-type-of-image-plugin/5773/4 "2006-04-23T12:27:07Z")

</div>

oke, than a description: program/msoffice  
would be better I think.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 23, 2006, 1:08pm UTC](https://forum.servoy.com/t/mime-type-of-image-plugin/5773/5 "2006-04-23T13:08:05Z")

</div>

no because that mime type doesn’t exists  
you can’t do anything with that.  
We are serving known mime types.
