Hi,
I would like to upload files.
I defined the following form in the template:
<form name="uploadFile" enctype="multipart/form-data" action="[!V
'SUBMISSION:FORM:uploadFile'/]"
method="post">
<!--V 'SUBMISSION:PARAMS:uploadFile'/-->
<input name="file" type="file" size="50" maxlength="100000"
accept="text/*">
<!--V 'fileUploadButton'/-->
</form>
My submission looks like the following:
<submission name="uploadFile">
<param name="file"/>
</submission>
And I thought, that I can get the file with the following code that
handles the submission:
public void doUploadFile()
{
UploadedFile uploadedFile = getUploadedFile("file");
logger.debug("UploadedFile: " + uploadedFile.getName());
}
But I got the following error message:
The element 'elements/termmanagement/importSource.xml' doesn't contain
file 'file' in submission 'uploadFile'.
Must I define a bean with a constraint .file(true)?
I couldn't find much about it in the documenation.
Cheers,
Lars
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users