cancel
Showing results for 
Search instead for 
Did you mean: 

get upladed doc url

ucf
Champ on-the-rise
Champ on-the-rise
hi everybody,

I'm a beginner in alfresco, I'm working on a java class that sends mail to validate the upload of a document, and I want to know how can I get the url of the uploaded document.
thank you
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
Are you using alfresco share interface?
Document detail url of any document in alfresco repository can be generated from noderef of document in following way.

http://serverSmiley Tongueort/share/page/site/{site}/document-details?nodeRef={nodeRef}

also checkout this thread
http://forums.alfresco.com/forum/developer-discussions/workflow/need-email-notification-point-share-...

ucf
Champ on-the-rise
Champ on-the-rise
thank you for your help,
in fact, the document is being uploaded to the alfresco repository, and I need to(using java) get the url f the document to send it in an email

mitpatoliya
Star Collaborator
Star Collaborator
There are basically two type of URLs associated with each of the document,
viewurl and downloadurl

http://myserver:8080/alfresco/d/a/<workspace>/<store>/<nodeId>/<filename>
http://myserver:8080/alfresco/d/d/<workspace>/<store>/<nodeId>/<filename>

Ex.

http://myserver:8080/alfresco/d/a/workspace/SpacesStore/0000-0000-0000-0000/myfile.pdf

It's been a while I had played with those java services  but You will find some API within nodeservice which will give you download url. Or else you can generate using nodeId.
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.