weird fileupload behaviour: No form data left for WOFileUpload
weird fileupload behaviour: No form data left for WOFileUpload
- Subject: weird fileupload behaviour: No form data left for WOFileUpload
- From: OCsite via Webobjects-dev <email@hidden>
- Date: Sat, 12 Jul 2025 15:23:20 +0200
Hi there,
I've just bumped into something weird. I often use uploads to memory, like this:
===
<wo:form enctype="multipart/form-data">
<wo:fileUpload data="$fileData" filePath="$fileName"
mimeType="$mime"/>
<wo:submit value="Import" action="$import"/>
</wo>
===
they work without problems, and there can be any number of them in the same
page. But now I've added an upload to file, like this:
===
<wo:form enctype="multipart/form-data">
<wo:fileUpload finalFilePath="$fileName"
streamToFilePath="$filePath" filePath="$originalFilePath" mimeType="$mime"/>
<wo:submit value="Upload" action="$upload"/>
</wo>
===
and it seems whenever it is in page, no other upload (of any type) can be
there. Testing seems to suggest that
- as already mentioned, any number of to-memory uploads in a page works all
right, presumed there's no to-file one in there
- if there's a single to-file upload in a page and any number of to-memory
ones, the to-file one works, but all the to-memory ones fail
- if there's more to-file uploads in a page, all the uploads (of any type) fail.
The failure looks like this:
===
Caused by: java.lang.IllegalStateException:
<com.webobjects.appserver._private.WOFileUpload> No form data left for
WOFileUpload!
at - WOFileUpload.takeValuesFromRequest(WOFileUpload.java:247)
at -
WODynamicGroup.takeChildrenValuesFromRequest(WODynamicGroup.java:84)
...
===
Does this make any sense? Can it be fixed or worked around anyhow, so that all
uploads in a page which contains (at least) one to-file upload work?
Thanks a lot!
OC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden