Regarding your post, I have two ‘mime_types.default’ in my Servoy installation:
<servoy_dir>\application_server\lib; and
<servoy_dir>\developer\configuration.…\lib
But I think Servoy (or file plugin) is not using that files… In the both files I have txt suffix (in fact, in your image is that kind of file registered), but with a .txt file .getContentType() is returning null, and in the other hand, in my files there isn’t pdf or PDF (or something like that), however that kind of file is returning “application/pdf”…
The smart client content type getting is done purely one bytes (the magic bytes)
Not on file name
Problem with Open Office formats is that those are just zip files… (and zip was one that we don’t return, if we did you would get application/zip)
So for those we have to check on names and extensions of the file name.
For a next version of servoy (maybe 5.1.x but not sure yet) i will see if we can also fall back to name guessing if we have the name for certain types.
It would be nice if there was a property or xml file somewhere on the internet where really many the extension->mime type where declared…
So that we can ship that one with the smart client
jcompagner:
Would be nice to have an easy to download property or xml file with just that content.
Looking for something like that, I found a file used by Apache Sling project. File is here [mime.types] (“# Although created for httpd, this file is used by many software systems # and has been placed in the public domain for unlimited redisribution.”).
because we think we did found it but for this situation it is not really the case,
If you have a few samples (where you really know the file extension) that still give something wrong please make a case.