Page 1 of 1

Mime Types

PostPosted:Tue Mar 01, 2022 5:54 pm
by TPipJo
Hi,

I'm hoping that someone can help. We have a lot of text files (SQL updates) that we would like to keep in OpenKB. The problem is that we are using our own file extension .syp Attempting to preview these files in OpenKM gives a Preview Unavailable error.

I have tried adding the extension to the Mime type for text/plain and text/x-sql but this makes no difference.

Finally when I try to create it's own Mime entry I get the following error:
Image

If anyone has any suggestions please let me know.

Many Thanks.

TPipJo


OpenKM - Community Edition
V 6.3.11 (Build: d7abb25)
Currently running on Windows 11
Apache TomCat

Re: Mime Types

PostPosted:Sat Mar 05, 2022 9:35 am
by jllort
Please share screenshots to understand the type of changes is trying to apply.

Re: Mime Types

PostPosted:Mon Mar 07, 2022 9:47 am
by TPipJo
I managed to sort the error (it was down to having two Mime Types with the same name. However my original issue is still happening.

I am adding a extension for a text file used by our software to process SQL commands. These files are just plain text files (nothing fancy) with a .syp extension. I added the Extension to the text/plain Mime Type. and click on the Edit button:
Image
When I try to Preview the file I get this:
Image

The Preview works for the other extensions in the Mime Type but nothing for .syp. I have tried the same and got the same results using the text/x-sql Mime Type as well.

Could anyone please help?

Re: Mime Types

PostPosted:Sat Mar 12, 2022 10:04 am
by jllort
Try using the mime "text/x-sql", that should working in case of previewing SQL files.
For more information about the login in the preview take a look at https://github.com/openkm/document-mana ... .java#L346