Hi folks,
first of all, I'm not sure if this is the right sub-forum for my question. If not, I'm sorry and please move the topic.
I have the following requirement:
In Share, I have my custom extension. The UI of the extension should contain a link like "Download Logfile". If a user (admin in all cases) clicks on it, the "alfresco.log" from the repository should be provided for download.
What I have already:
- A post webscript in Share that connects to Alfresco after the user click on the link
- A java based webscript in the repository that receive the request
- Based on JMX I get the logfile and prepare it already
Now I'm struggling, because I dont know what I have to send back to Share as response and how I can provide the file. Are there any best-practises that I should follow? Send a link to the repository directly? Or stream the file to Share and handle the download on Share side?
Thanks for any hints,
Itzamna