The form tag uses enctype "multipart/form-data". Uploading is not the
problem. The file uploads okay. When I forward to the next action I get the
error. I'm wondering if the request is wrapped in a Mulitpart request of
some kind.

Peter


-----Original Message-----
From: Biswas Amalendu [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 16:42
To: [EMAIL PROTECTED]
Subject: Re: invalid multipart request in beta 3


Hi Peter,

I have a file upload program and I am using b3 and everything is working
just fine. Would you make sure that you set the enctype to
"multipart/form-data" on your form tag.

Thanks,
Amalendu Biswas.


>From: "Peter Doyle" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: invalid multipart request in beta 3
>Date: Wed, 6 Jun 2001 15:44:58 +0100
>
>Hi,
>  I recently changed from Struts b1 to b3. (I skipped b2) I have doe
>working
>with b1 to handle uploading, based on the upload application that came with
>struts. Since changed to b3 I get the following error:
>
>javax.servlet.ServletException: MultipartIterator: invalid multipart
>request
>data, doesn't start with boundary
>
>I cannot find what has changed between struts b1 and b3 that would cause
>this. I cannot find a way to resolve it. The code in my upload action
>executes and finishes. Control is passed to the controller servlet where
>this problem occurs.
>
>I would appreciate any help
>
>Thanks,
>Peter
>
>
>
>javax.servlet.ServletException: MultipartIterator: invalid multipart
>request
>data, doesn't start with boundary
>       at
>org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.j
a
>va:345)
>       at org.apache.struts.upload.MultipartIterator.(MultipartIterator.java:152)
>       at
>org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMult
i
>partRequestHandler.java:65)
>       at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:735)
>       at
>org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:2
0
>53)
>       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
>       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>       at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
>       at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
>       at
>allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.ja
v
>a:88)
>       at
>org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.j
a
>va:1758)
>       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595)
>       at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
>       at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
>       at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
>       at
>allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.ja
v
>a:88)
>       at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
>       at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
>       at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
>       at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
>       at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
>
>
>
>
>
>--
>__________________________________________________
>Peter Doyle                      TEO Media Ireland
>[EMAIL PROTECTED]         http://www.teomedia.com
>Ph +353 1 888 1353              Fx +353 1 888 1354
>Unit 8 Scotch Berth, North Wall, Dublin 1, Ireland
>__________________________________________________
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to