Hi,
I am using WSAD 5.1 and I am using the oreilly.MultipartRequest to upload images from my HTML page to the
servlet. However, the files do not get uploaded. If I try to do a request.getParameter() on any other form attribute it returns a null. I read that this has been a bug in the versions previous to Websphere 5.0.1.
Can anyone tell me if there is a work around for this problem.
Thanks in advance for your help!!!
-DC.
My HTML looks like this:
<form method=post action="UploadImageRequestHandler" ENCTYPE="multipart/form-data" name=form1 onSubmit="window.close();">
<input type=file name=filesent onChange="DoPreview()">
</form>
the servlet does something like this:
public void doPost(HttpServletRequest oRequest, HttpServletResponse oResponse) throws ServletException, IOException {
MultipartRequest mp = new MultipartRequest(oRequest, "C:\\data\\");
}