Hi Xavier,
I suspect you have a mispell in your 'enctype'
I've uploaded sample code to
xwiki.org which only works on the SVN
version of XWiki which has the fileupload plugin.
http://www.xwiki.org/xwiki/bin/view/Snipplets/File+Upload?xpage=code
Ludovic
Xavier MOGHRABI wrote:
Hi
I'd like to add in a form the possibility for users to upload file. My form
look like this one :
<form action="" enctype="mutipart/form-data"
method="post">
<input type="text" name="submitter" />
<input type="file" name="file" />
<input type="submit" />
</form>
The problem I have is with xWiki to get the data from the $request object and
handle them by using Velocity. After I'd like to store the uploaded file as
attachment in a document.
If someone of yours have already done that I'm interesting in getting a such
example.
By the way, I've noticed that there is a plugin called FileUpload in XWiki. I
think it would be great to use it because uploaded file handling is not
really handy, but I don't know how to use it within the wiki.
Thanks.
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
Ludovic Dubost
XPertNet:
http://www.xpertnet.fr/
Blog:
http://www.ludovic.org/blog/
XWiki:
http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic