How am I supposed to handle the MaxLengthExceededException raised when
someone attempts to upload a file bigger than the maximum size?
This exception is raised inside RequestUtils.populate(), AFAIK way before
I'm given a chance of handling it. Am I missing something obvious here? How
else can I present an error message to the user, letting them know why I'm
forced to reject their upload?
Find below a stack trace of the exception. Thank you for sharing your
insights,
--Renaud
org.apache.struts.upload.MaxLengthExceededException: The maximum length of
60000000 bytes has been exceeded
at
org.apache.struts.upload.BufferedMultipartInputStream.<init>(BufferedMultipa
rtInputStream.java:85)
at
org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.ja
va:311)
at
org.apache.struts.upload.MultipartIterator.<init>(MultipartIterator.java:152
)
at
org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMulti
partRequestHandler.java:65)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:735)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20
61)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>