Hello Christian,
Thanks a lot for this report. Your contribution is available in the SVN
repository.
Best regards,
Thierry Boileau
Hi again,
although I had this running in some prior version, the fileupload
extension seems not to work correctly anymore (fileupload complains about
missing boudaries).
I digged in the changelogs and couldn't see why ... but after
debugging a bit it seems that Commons-fileupload's (1.2)
FileItem parser expects the full content-type with parameter
(i.e. the boundary specification), but the RepresentationContext
class in Restlet's fileupload extension only provides the
plain media type in its getContentType() method
public String getContentType() {
if (this.multipartForm.getMediaType() != null) {
return this.multipartForm.getMediaType().getName();
} else {
return null;
}
}
Replacing getName() with toString() does the job for me.
best regards
Christian