I am developing locally on jetty and deploy it later to a tomcat. which works fine, except file uploads fail.
Uploading files works on jetty without problems, but on tomcat request.raw().getPart("file") always returns null.
MultipartConfigElement multipartConfigElement = new MultipartConfigElement(somepath);
request.raw().setAttribute("org.eclipse.multipartConfig", multipartConfigElement);
Part file = request.raw().getPart("file");
i configured my web.xml as in the example on the website.
i added the multipart-config element, but it changes nothing.
does anyone has any idea how i get this to work ?
Maybe the problem is, that the app is running as a filter ?
thank you