Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that involve large files being uploaded by the client?

Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that
involve large files being uploaded by the client?

Which annotation enables a servlet to efficiently process requests of typo multipart/form-data that
involve large files being uploaded by the client?

A.
@AcceptMultipart

B.
@MultiPartConfig

C.
@MultiPartFormData

D.
@WebServlet (multipart = true)

Explanation:
http://www.scribd.com/ilinchen2008/d/38764279-Servlet3-0-Specs (page 22, last
paragraph)



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Neo

Neo

B

Sample:
@WebServlet(“/uploadFiles”)
@MultipartConfig(
fileSizeThreshold = 1024 * 1024 * 1, // 1 MB
maxFileSize = 1024 * 1024 * 10, // 10 MB
maxRequestSize = 1024 * 1024 * 15, // 15 MB
location = “D:/Uploads”
)

Allan Santos

Allan Santos

It is “B”. just like Neo show us.