Re: Struts2 - multipart/related - HttpServletRequest#getParts not working

2018-10-08 Thread Nikhil P Kookkiri
Hi Yesser, thanks for your response. Yes, it is the issue with the servlet. I am suspecting that MutiPartConfig works only for multipart/form-data and does not work with multipart/related. I passed the request directly to HttpServlet instead of Sturts mapped Action with @MultiPartConfig confi

RE: Struts2 - multipart/related - HttpServletRequest#getParts not working

2018-10-08 Thread Yasser Zamani
This isn't Struts issue but your underlying servlet message. Anyway, what about trying Struts itself file upload feature. Then ask that another app to http post the file to a file upload action. Regards. >-Original Message- >From: Nikhil P Kookkiri >Sent: Monday, October 8, 2018 12:37

Struts2 - multipart/related - HttpServletRequest#getParts not working

2018-10-08 Thread Nikhil P Kookkiri
I have request coming from another application which is 'multipart/related'. In the mutlipart request body, I am receiving image/jpeg and application/xml. I suppose, I should be iterating over the http part obtained from getPaths method in the HttpServletRequest object and read the stream avail