From: David L. <dav...@uc...> - 2016-06-10 19:17:05
|
I am developing a sword server using org.swordapp : sword2-server. The java servlet is being run on tomcat. I have successfully been able to run PUT multipart/related requests with: Content-Disposition: form-data; name="payload"; filename="114_archive.zip" however, using the SWORD standard form: Content-Disposition: attachment; name="payload"; filename="114_archive.zip" fails. The failure is caused because the HttpServletRequest#getParts will only return content using the Content-Disposition: form-data. In fact, the documentation for HttpServletRequest indicates that it only supports multipart/form-data. I'm interested in what mechanisms people have found for getting multipart/related with Content-Disposition: attachment; to work on tomcat hopefully without locally having to parse the HTTP request. Any suggestions would be great. Thanks David |