Here’s a strange problem with the attachment pane at the bottom of wiki page.
I’ve attached a number of files with an extension of DRF, which is basically a text file with information system to tell a document management system (OpenText DocsDM) which file to open.
The format of the file is just a single line of text containing a couple of fields seperated by ; characters.
When I attach these files to xwiki, xwiki detects them as image files
The above screenshot shows a “broken link”. Inspecting the element shows the following:
<span class="mime" data-type="image/x-raw-kodak"> <span title="Image"> <img src="/xwiki/bin/download/Main/01%20Marketing%20Materials%20and%20Knowhow/01%20General%20Information/WebHome/CHARLTONS-100557.PPT.DRF?width=48" alt="CHARLTONS-100557.PPT.DRF"> </span> </span>
Clearly this isn’t an image file.
Is there a way to override the detected file type?
I’ve run the 1.17 tika-app file detection on this file and it returns “text/plain” which is more sensible than a raw kodak image file.