Brandon Esbach wrote:
Is it possible to attach a file directly from the
server to an xwiki
document? For example, in my case I run a batch of PDF reports overnight
(using the Quartz scheduler). I would prefer to be able to attach this
generated file directly to an xwiki document for the user to access the
details as needed.
The only problem is I can't seem to find any way to do this. Is this
possible to do?
Yes, but not directly from the interface. Just put in your code
something similar to what's in com.xpn.xwiki.web.UploadAction, but
instead of getting the data from the FileUploadPlugin, read it from the
filesystem.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/