mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +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
|
// Update the working copy
|
||||||
workingCopy.properties.content.write(content);
|
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
|
// check it in again, but with a version history note and as minor or major version increment
|
||||||
workingCopy = workingCopy.checkin(description, majorVersion);
|
workingCopy = workingCopy.checkin(description, majorVersion);
|
||||||
model.document = workingCopy;
|
model.document = workingCopy;
|
||||||
|
Reference in New Issue
Block a user