From 2e86ffb54e130d5206306e31fd209eaf54ca9951 Mon Sep 17 00:00:00 2001 From: Roy Wetherall Date: Wed, 30 Jul 2008 18:33:24 +0000 Subject: [PATCH] Thumbnail Service and Upload: thumbnails now refresh when new content is uploaded, content mime is not reset to binary when new content is checked in git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10145 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../webscripts/org/alfresco/repository/upload/upload.post.js | 3 +++ 1 file changed, 3 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 63cda845cc..c616f98050 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 @@ -135,6 +135,9 @@ function main() } // Update the working copy workingCopy.properties.content.write(content); + // Reset working copy mimetype and encoding + workingCopy.properties.content.guessMimetype(filename); + workingCopy.properties.content.encoding = "UTF-8"; // check it in again, but with a version history note and as minor or major version increment workingCopy = workingCopy.checkin(description, majorVersion); model.document = workingCopy;