AnsweredAssumed Answered

Getting document URL and from it...the documents

Question asked by pavan on May 23, 2013
Latest reply on Jun 21, 2013 by harvey
Hello All,


    I am really new to Alfresco. We need to integrate a PLM product with Alfresco. My requirement drives me to get the file associated with the URL/hyperlink during drag/drop onto our PLM.

    I have few questions in this regard:

    1. If I have few files in a repository, and if I hover over them, I could see the target link [ HREF of anchor tag ] as

   http://XXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9-a2a1-671f599f939c

     Now, if I click one particualr document, I could see something like this in the URL box of the browser.

   http://XXXXXXXX/share-repo/proxy/alfresco//api/node/content/workspace/SpacesStore/7346eeef-4a75-47e9-a2a1-671f599f939c/53082378-1-PDF1.pdf?a=true

       So my question is this. What needs to be done to get the proper URL of a file during hover/drag. Javascript drag event?

    2. If I do get a URL of the document appropriately, how do I get the actual file?. Are there any specific APIs provided by Alfresco?.

    3. Finally, in the event that I do not get the URL correctly, is there any way to get a unique id of the file that I am dragging?.

    Requesting you to share any information on this stuff.

Thanks,
Pavan.

Outcomes