send file response at share side as download file
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2012 06:27 AM
Hi,
I have custom action on advance search in alfresco share enterprise 4, I place export button. When I click "Export" it should export metadata.
I can populate search nodes to repository side webscript and I generate csv in webscript class itself.
Now how can I send it to share side that file as a response? I refered streamContent class but it seems it requires nodeRef (so content should be stored in alfresco repo first) can't it possible if we have stored file in tomcat/temp/xyz.csv and picked that file and send it to share side as download prompt???
if anybody achieved like this please suggest pointer…
I have custom action on advance search in alfresco share enterprise 4, I place export button. When I click "Export" it should export metadata.
I can populate search nodes to repository side webscript and I generate csv in webscript class itself.
Now how can I send it to share side that file as a response? I refered streamContent class but it seems it requires nodeRef (so content should be stored in alfresco repo first) can't it possible if we have stored file in tomcat/temp/xyz.csv and picked that file and send it to share side as download prompt???
if anybody achieved like this please suggest pointer…
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2012 07:14 AM
For those following along, there is a discussion on a similar issue here: https://forums.alfresco.com/en/viewtopic.php?f=48&t=43720
