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:
Kevin Roast
2008-07-01 09:56:02 +00:00
parent 8fdfa9ae2c
commit 5824852a0a

View File

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