mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user