Monday 28 July 2014

File Upload

If request is of type multipart/form-data and if the servlet handling the request is annotated using the @MultipartConfig, then the HttpServletRequest can make available the various parts of the multipart request via the following methods.

public Collection<Part> getParts()
public Part getPart(String name)

The part represents a part or form item that was received within a multipart/form-data POST request.



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment