mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Add missing html mimetype to created node for .docx->.html conversion
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22547 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -104,7 +104,6 @@ public class HTMLRenderingEngine extends AbstractRenderingEngine
|
||||
{
|
||||
ContentReader contentReader = context.makeContentReader();
|
||||
String sourceMimeType = contentReader.getMimetype();
|
||||
String targetMimeType = "text/html";
|
||||
|
||||
// Check that Tika supports the supplied file
|
||||
AutoDetectParser p = new AutoDetectParser();
|
||||
@@ -293,6 +292,7 @@ public class HTMLRenderingEngine extends AbstractRenderingEngine
|
||||
|
||||
// Save it
|
||||
ContentWriter contentWriter = context.makeContentWriter();
|
||||
contentWriter.setMimetype("text/html");
|
||||
contentWriter.putContent( sw.toString() );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user