cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I Download the doc I just Uploaded?

duhannig
Champ in-the-making
Champ in-the-making
I have implemented the upload example:
http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload

which works fine, but how do I download/view the document that was uploaded?
The upload post gives me the upload.displayPath and upload.name, how do I make a web script that uses those arguments to view the file?

Thanx
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
One way is to use CMIS. There is a CMIS web script that uses path to get to the node. For example, if you upload sample-a.pdf to /Test, you could download it with:
http://localhost:8080/alfresco/s/cmis/s/workspaceSmiley FrustratedpacesStore/p/Test/sample-a.pdf/content.pdf

Or you can get to it using the same web script if you know the node ID:
http://localhost:8080/alfresco/s/cmis/s/workspaceSmiley FrustratedpacesStore/i/2c3204f0-22f7-43ee-9831-592127584c8f/c...

Jeff