List of usage examples for org.springframework.web.multipart MultipartHttpServletRequest getParts
public Collection<Part> getParts() throws IOException, ServletException;
multipart/form-data
. From source file:org.springframework.web.multipart.support.StandardServletMultipartResolver.java
@Override public void cleanupMultipart(MultipartHttpServletRequest request) { // To be on the safe side: explicitly delete the parts, // but only actual file parts (for Resin compatibility) try {//from w w w.j av a 2s .c o m for (Part part : request.getParts()) { if (request.getFile(part.getName()) != null) { part.delete(); } } } catch (Throwable ex) { LogFactory.getLog(getClass()).warn("Failed to perform cleanup of multipart items", ex); } }