How can i upload file from my hard disk to alfresco

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2011 07:35 AM
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.
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.
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2011 08:08 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2011 08:14 AM
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).

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2011 08:47 AM
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.
