@MultipartConfig annotation is used to define a servlet, handling mime type multipart/form-data to upload a file from client to server.
The HttpServletRequest object of the corresponding servlet is responsible to make the mime attachments available via the getParts and getPart methods to iterate over the various mime attachments.
Let's consider following web.xml file upload configuration.