cancel
Showing results for 
Search instead for 
Did you mean: 

How can i upload file from my hard disk to alfresco

mohammed_amr
Champ in-the-making
Champ in-the-making
Dear Gurus,

I have a workflow and this workflow have a property named "Attachments" but that attachments must be uploaded from user hard disk i.e not from alfresco repository; can any one help. I use the association attachments but that association associate files from alfresco repository which is not accepted by end user.

Thanks
Mohammed Amr
Senior System Developer
Digital Series.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
It would probably be easier and more reliable to upload your documents and then run a workflow on them.

Failing that if you still want to have a server side upload you would have to put your documents onto a filesystem accessable by the alfresco server and then run some code to read that file and load it into alfresco.

mrogers
Star Contributor
Star Contributor
More details…   On the server you would use NodeService.createNode to create the node and then get a content writer fpr that node and ContentWriter.putContent(File).

younis15
Champ in-the-making
Champ in-the-making
Failing that if you still want to have a server side upload you would have to put your documents onto a filesystem accessable by the alfresco server and then run some code to read that file and load it into alfresco.

Could we override the manage-task-dialog.jsp and embed the r:upload tag into it to upload local file and load it into alfresco repository as an alternative way to overcome the restriction of server side only files?


Thanks//
Younis Alomoush.