Hi, we noticed a problem with the FileUpload extension when parsing "multipart/form-data" requests.
There is always the following exception (RC2): --------------------- org.apache.commons.fileupload.FileUploadException: the request was rejected because no multipart boundary was found at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:931) at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331) at org.restlet.ext.fileupload.RestletFileUpload.getItemIterator(RestletFileUpload.java:101) --------------------- The FileUploadBase does not find the multipart boundary parameter in the "ContentType" string anymore. The problem is that org.restlet.ext.fileupload.RepresentationContext.getContentType() (which calls multipartForm.getMediaType().toString()) returns just "multipart/form-data" and not "multipart/form-data; boundary=---------------------------316221320827395" as it should. I've analyzed it a bit further and the issue basically seems to be that new ContentType("multipart/form-data; boundary=---31").getMediaType().toString() returns just "multipart/form-data" (in contrast to MediaType.valueOf("multipart/form-data; boundary=---31").toString() see [1]). So I guess it's about changing MediaType.toString() or introducing another method to return the name with parameters? cheers, Carsten [1] http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2449981 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2467991