getDownloadUrl for a node

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-17-2010 11:33 AM
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?
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?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2010 03:53 AM
Hi gokceng
Have you tried with http://<your server>:8080/alfresco/ ???
http://localhost:8080/alfresco/d/a/versionStore/version2Store/3ddab5cb-b8d1-4486-bca7-8d9f63f2b151/1...
Have you tried with http://<your server>:8080/alfresco/ ???
http://localhost:8080/alfresco/d/a/versionStore/version2Store/3ddab5cb-b8d1-4486-bca7-8d9f63f2b151/1...

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2010 04:52 AM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-18-2010 08:48 AM
model.downloadURL = url.getServer() + "/alfresco" + document.getDownloadUrl() + "/";
that's how it is done.
that's how it is done.
