MultipartConfig annotation examples
The @MultipartConfig annotation is used to annotate a servlet class in order to handle multipart/form-data requests and configure various upload settings. When a servlet is annotated by this annotation, we can access all parts via the methods getParts() and an individual part via the method getPart(name) of the HttpServletRequest object, and write the upload file to disk via the method write(fileName) of the Part object. Use this annotation if you want to handle file upload through servlet (See the tutorial: How to write upload file servlet with Servlet 3.0 API).Read full article from MultipartConfig annotation examples
No comments:
Post a Comment