AnsweredAssumed Answered

Accessing the contentUrl with Javascript

Question asked by username on Jul 27, 2011
Latest reply on Jul 27, 2011 by username
Hey,

What I'm trying to do is write a script that as part of it's functionality needs to list the actual file locations on disk of a piece of content in alfresco. When you try to access the content property, instead of the string that shows in the node browser, which is something like:

contentUrl=store://2011/7/20/17/21/82b0bc49-ef9e-4827-a673-8fcf1f66c745.bin|mimetype=application/pdf|size=33792|encoding=utf-8|locale=en_GB_

You are returned something like this:

org.alfresco.repo.jscript.ScriptNode$ScriptContentData@180ae73

Anyone know how to actually get the first string I've posted up there? I can't see anything in the API about it.

I'm on Alfresco 3.3g if that's any help.

Outcomes