From 0c4683657d958b18a362cc3d94b018d31e08777a Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Tue, 1 Jul 2008 09:56:02 +0000 Subject: [PATCH] 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 --- .../webscripts/org/alfresco/repository/upload/upload.post.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js b/config/alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js index eaa7e78fa3..b925db5728 100644 --- a/config/alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js +++ b/config/alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js @@ -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;