Page 1 of 1
I need to upload a file of unsupported type
PostPosted:Fri Jan 11, 2008 4:14 pm
by wgualla
Hello, me again. I\'m trying to upload a file of type mdv (blabla.mdv) and OpenKM tell me on red background: Tipo no soportado.
I\'ve add this two lines on mime.types file
application/x-shellscript mdv
application/x-shellscript shp
and nothing happen.
How can I tell to OpenKM that accept this kind of file?
Thanks in advance.
Re:I need to upload a file of unsupported type
PostPosted:Fri Jan 11, 2008 7:24 pm
by jllort
Really mime.types files is only loaded at starting, you\'ll need to restart Jboss service to that take some effect.
You could get other problem the OpenKM icon asociated to this mime-type, but I think - not sure - you could be on luck because exist a icon named x-shellscript.gif on OpenKM.war at img/mime/application/ , with your mime declaration I think it\'ll get this icon.
Try is and tell us if it run\'s propertly.
We\'ve thinking mime.types file to disable extensions, not to include ( image icons not exists ). Other reason is that not all mime-type files can be indexed by default.
Do you want we put these extensions on new OpenKM release ( 2.0 ) ?
Re:I need to upload a file of unsupported type
PostPosted:Mon Jan 14, 2008 8:34 am
by wgualla
Hello, may be I\'m confussed about OpenKM features. Some times I need to upload generic binary files that not must be indexed by its contents, only by reference word submitted from OpenKM form. Can I do that? or all documents managed by OpenKM MUST be indexed? Oooops, sorry, I\'d put the line:
application/x-shellscript mdv
and after JBoss restart the same, Unsopported file type, then I\'d try with
application/x-wgualla mdv
and ovbiously, nothing new.
Re:I need to upload a file of unsupported type
PostPosted:Mon Jan 14, 2008 12:01 pm
by pavila
Not all documents submited to OpenKM are indexed, only a few ones: OpenOffice.org, MS Excel, MS PowerPoint, MS Word, PDF, HTML, XML, TXT and RTF, but you can stored any file type in OpenKM. By default, you can only submit some file types to OpenKM for two reasons: there is a icon associated with each MIME type, and because security reasons. Some OpenKM client don\'t want to upload any file type into the server.
Re:I need to upload a file of unsupported type
PostPosted:Mon Jan 14, 2008 12:28 pm
by jllort
Look at the log, at %JBOSS_HOME%/server/default/log/server.log
An give us if there it appers some error log message, to take a look about which mime-type OpenKM is thinking about your file is.
Re:I need to upload a file of unsupported type
PostPosted:Mon Jan 14, 2008 12:37 pm
by pavila
I find the problem :) There is a little bug in this OpenKM release: there is two mime.types in use, one in $JBOSS_HOME an another in the WAR /WEB-INF/classes/es/git/openkm/core/. So delete the file $JBOSS_HOME/mime.type because is useless and edit the WAR (the WAR in into the EAR package)
Re:I need to upload a file of unsupported type
PostPosted:Tue Jan 15, 2008 7:33 am
by wgualla
Yes, that\'s all. $JBOSS_HOME/mime.type dont\' play. I just add my mime type ini .war file and (for the same price) an .gif icon for it. Thanks a lot.