Collection<Part> parts = request.getParts("file");
However in Eclipse runing my project on Maven Aem archetype 10, I cannot access Part unless I use Collection<javax.servlet.http.Part> parts but the SlingHttpServletRequest object does not have access to getParts();
Am I approaching this incorrectly in AEM?
I have been working with AEM for 2 years now, but I have never had to read Multiple attachments before.
I think the problem is the Servlet API version. The oracle doc starts "Servlet 3.0 supports". I think the interface that is being pulled in is an earlier version of the Servlet API. I don't know if the AEM uber jar has Servlet 3.x apis.
The Adobe repo does not have Servlet API 3.0 . Here is the list from the repo (as of today):