Hi Sergey, No problem.
I couldn't find the issue but could be something related with our code, since it works in another place. I'll keep trying :) Thanks for the tips, Gabriel On Wed, Jul 7, 2010 at 6:07 PM, Sergey Beryozkin <[email protected]>wrote: > Hi > sorry for a late reply - have you made it working ? > Can you update the form to send the request through 8081 and trace what is > happening on the wire ? You may also want to try a later CXF version, the > issue, if any, may've been already fixed > > cheers, Sergey > > On Fri, Jul 2, 2010 at 11:13 PM, Gabriel Guardincerri <[email protected] > >wrote: > > > Hi > > > > I'm trying to implement a REST WS to upload images with CXF 2.2.6 but I'm > > getting a "* > > Couldn't find MIME boundary" error and I don't know what's wrong. > > * > > > > This is what I have: > > > > First the REST interface: > > > > @Produces("text/xml") > > public interface ImageService { > > > > @POST > > @Path("/{userId}") > > @Consumes("multipart/form-data") > > Response upload(@PathParam("userId") String userId, MultipartBody > body); > > } > > > > Then I do a POST with this > > > > <form action="http://localhost:8080/upload/1" > > enctype="multipart/form-data" > > method="post"> > > <p> > > Type some text (if you like):<br> > > <input type="text" name="textline" size="30"> > > </p> > > <p> > > Please specify a file, or a set of files:<br> > > <input type="file" name="datafile" size="40"> > > </p> > > <div> > > <input type="submit" value="Send"> > > </div> > > </form> > > * > > * > > *I get this error * > > * > > * > > * > > WARN org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - > > WebApplicationException has been caught : Couldn't find MIME boundary: > > ------WebKitFormBoundaryjoiEMONkidNgL2wU > > > > Any ideas? > > > > Thanks in advance, > > > > Gabriel > > * > > >
