cancel
Showing results for 
Search instead for 
Did you mean: 

getDownloadUrl for a node

gokceng
Champ in-the-making
Champ in-the-making
I want to get direct download url of a node using webscript.

document.getDownloadUrl() gives me something like that:

/d/a/versionStore/version2Store/3ddab5cb-b8d1-4486-bca7-8d9f63f2b151/18.pdf

what is the beginning of that url? which properties of document will give me the required part?
3 REPLIES 3

ehdez
Champ in-the-making
Champ in-the-making

gokceng
Champ in-the-making
Champ in-the-making
it works thanks a lot. but I couldn't find how can i access server information from webscript? I mean server address and port number.

gokceng
Champ in-the-making
Champ in-the-making
model.downloadURL = url.getServer() + "/alfresco" + document.getDownloadUrl() + "/";

that's how it is done.