This is how I do it in one of our apps:
File tempFile = ERXFileUtilities.writeInputStreamToTempFile(request().multipartIterator().nextFormData().formDataInputStream());
... in this case, I know there's only one key coming in, so I cheat and don't "properly" iterator the form datas -- i just grab the first one. You can iterate over the form datas and check their name to find the one you are looking for if you have more than one. If you don't use Wonder, ERXFileUtilities.writeInputStreamToTempFile is basically exactly what it sounds like.
ms
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
|