mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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
This commit is contained in:
@@ -2431,6 +2431,11 @@ public class ScriptNode implements Serializable, Scopeable
|
|||||||
this.contentData = (ContentData) services.getNodeService().getProperty(nodeRef, this.property);
|
this.contentData = (ContentData) services.getNodeService().getProperty(nodeRef, this.property);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void guessMimetype(String filename)
|
||||||
|
{
|
||||||
|
setMimetype(services.getMimetypeService().guessMimetype(filename));
|
||||||
|
}
|
||||||
|
|
||||||
private ContentData contentData;
|
private ContentData contentData;
|
||||||
private QName property;
|
private QName property;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user