Fix for SLNG-613 - mimetype now correctly guessed by repo after upload via Flash (which helpfully applies the binary mimetype to all files)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9608 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2008-07-01 09:56:02 +00:00
parent 35d64aee98
commit 0c4683657d

View File

@@ -114,6 +114,8 @@ else
upload = destNode.createFile(filename) ;
upload.properties.contentType = contentType;
upload.properties.content.write(content);
// reapply mimetype as upload may have been via Flash - which always sends binary mimetype
upload.properties.content.guessMimetype(filename);
upload.properties.content.encoding = "UTF-8";
upload.properties.title = title;
upload.properties.description = description;