Hi Kamna,
This is regarding the capability to upload Multiple
files at a time to
Xwiki.
Cool, we definitely need this feature.
I understand that currently the attach functionality
is rendered using
HTML.
The HTML file upload control does not allow mutliple files to be
selected/uploaded at one time.
Hence, I looked the JFileChooser component of Java Swing. I can write a
Class that brings up a JFileChooser object and allow multiple selections
at
once.
But, I am not sure how to integrate this functionality with Xwiki ,
especially with the Velocity templates (which are used to render the
pages).
Few Questions:
1) in order to achieve this, do I need to create a velocity template that
will render the fileChooser on the XWiki page ?
2) If yes, how do I accomplish this? create a new "action" and then write
the render and action methods for that?
3) If no, what are my other options to achieve this?
You can access the velocity code involved in the following folder :
xwiki enterprise (that's the top folder where your wiki is) > webapps >
xwiki > templates > attachmentsinline.vm (that's the velocity code you're
looking for)
Hope this helps,
Guillaume