FileUpload multipart
Hi,
Using FileUpload from jakarta commons, I get this error "the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is application/x-www-form-urlencoded"
In my jsp I have:
<form method="post" action="/myServlet" enctype="multipart/form-data">
This exception is product in instruction :
List items = upload.parseRequest(request);
Thanks for u help
[515 byte] By [
keopska] at [2007-10-3 1:58:36]

FileUpload will not lie to you: if it is telling you that the request is not a multipart request then it is not a multipart request. The only explanation that is left is that you in fact did not submit the form that you have posted the header to, but you either submitted another form, or you did a redirect of some sort (such as clicking a link).
hi gimbal2,
thank you very very much. It is completely that.
On another side, I get already the value of other fields by using request.getParameter("MyField"). This method returne null. It is possible simultaneously to use the method getParameter and the package fileupload ?
Thank you still
NB. Excuse me for my English.
null