We are developing a OSGI module that uses a SlingRequest as input.
We have no issues with the input. These are uploaded documents by authenticated users.
The module will use various document services to generate a new document.
Questions.
Is there any sample document/website on how these documents can be stored in the JCR, to be available for the user for download?
How do we generate a URL that we can return through the SlingResponse for the user to use as a link access the document?