mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -114,6 +114,8 @@ else
|
|||||||
upload = destNode.createFile(filename) ;
|
upload = destNode.createFile(filename) ;
|
||||||
upload.properties.contentType = contentType;
|
upload.properties.contentType = contentType;
|
||||||
upload.properties.content.write(content);
|
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.content.encoding = "UTF-8";
|
||||||
upload.properties.title = title;
|
upload.properties.title = title;
|
||||||
upload.properties.description = description;
|
upload.properties.description = description;
|
||||||
|
Reference in New Issue
Block a user