cancel
Showing results for 
Search instead for 
Did you mean: 

Getting document path in Alfresco repository

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

In our project,we have a requirement that states that when some content is published,if it is having links of some URL which are having some document attached to them e.g http://jangra.lalit.jj.com/some/pdf/20070515025950_667.pdf,i need to create special URLs for these attached document so that i can provide these URLs on Front end portal & users can access these document by clicking on these links.Here prerequisite is that, the attached documents are already present in Alfresco repository.
                                                                                  Can i get the location of document in alfresco repository in this form:"company home/abc/xyz/123.pdf" where 123.pdf is physically present under "company home/abc/xyz" space in Alfresco .Is there anything available in Alfresco for the same in form of web script or something else so that i can create a modified URL in my JAVA class outside Alfresco with the references what i have got from Alfresco assuming that there is same directory/space structure in both Alfresco as well as on local machine say  "company home/abc/xyz/123.doc" directory structure is also available on my local machine.Here the URL http://jangra.lalit.jj.com/some/pdf/20070515025950_667.pdf will be converted into https://lalit.jangra/abc/xyz/attachments/20070515025950_667.pdf

Any help will be highly appriciated.
1 REPLY 1

marutiprasad
Champ in-the-making
Champ in-the-making
Hi ,

you can get it through the web script.
take it you have node.

node.url provides : The readonly url to the content stream for this node.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.