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
This commit is contained in:
Roy Wetherall
2008-07-30 18:33:24 +00:00
parent 20377c9e30
commit 2e86ffb54e

View File

@@ -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;