Hi,
I need to find a solution for offering a way to the users to upload attachments to certain
pages directly from the form editing mode. (Instead of having to build the page first,
save it and attach the file later. Reason: the page is basically just a wrapper for the
attached document(s), so it is very counter-intuitive to have to build the wrapper BEFORE
you can upload in this case.)
Another way to describe what I need using the FAQ tutorial
(
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FAQTutorial): Imagine you want to allow
users to attach screenshots to FAQs directly when defining an FAQ. So you probably need to
change the document sheet in such a way that in form editing mode a file upload selector
is shown below the answer and question fields (that part is easy simply using HTML) and
when saving the selected file is uploaded as an attachment to the current page (the tricky
part I guess, I have no clue how to start). Allowing to upload multiple files at once
would be nice, but isn't an absolute must.
Is this possible? Any hints are greatly appreciated!
Cheers,
Olaf