Dear all,

I am using JAX-RS for handing a Multipart form for file upload. I have a method:

@POST
@Consumes(MediaType.MULTIPART_FORM_DATA)
public Attachment addAttachment(Multipart multipart) ...

Now the problem is that multipart contains information to be "parsed"
in order to be extracted (I am talking about form fields)
Something like:

Content-Disposition : form-data; name="field1"
Content-Disposition : form-data; name="field2"
Content-Disposition : form-data; name="file"; filename="someuploadedcontent.png"

Is there already, in Restlet, a convenient way for parsing this kind
of thing or should I write some pattern matching magic?

Cheers,
Fabio

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1563072

Reply via email to