Files can be send to the servlet container for processing by requests that are of type Multipart/form-data.
HttpServletRequest
defines following methods for handling Multipart data.
getParts() : Gets all the Part components of this request, provided that it is of type multipart/form-data. If this request is of type multipart/form-data, but does not contain any Part components, the returned collection will be empty.
getPart(String name) : Gets the Part with the given name. The Part with the given name, or null if this request is of type multipart/form-data, but does not contain the requested Part.