I would like to grep some data from a file upload, but can't find a way
to do it.
Here are a simple example
{{velocity}}
#foreach($prop in $request.getParameterNames())
request.$prop
#end
{{html}}
<form action="" enctype="multipart/form-data" method="post">
<div>
<fieldset>
<legend>Attach files to this document</legend>
<div>
<input name="a" value="" size="40" type="text">
<input name="b" value="" size="40" type="file">
<input name="c" value="" size="40" type="text">
</div>
<div>
<input value="Attach" class="button" type="submit">
<input value="Cancel" class="button" type="reset">
</div>
</fieldset>
</div>
</form>
{{/html}}
{{/velocity}}
It returns
request.a
request.c
What happened to 'b', is et a bug or a feature? Are there any way to
access the value of 'b'?
I've been looking at the java code but haven't found anything claiming
it should be gone.
-Rune
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users