I have a custom activateExceptionPage() in my engine that redirects to
a special page displaying the error if the given cause is "instanceof
FileUploadException". I know this is not strictly a file size
exception, but it works for me. I think all other cases throwing a
FileUploadException (like user aborting the upload) result in no page
being sent to the browser anyway.
but I'd like to hear too how others have solved this.
Bernd
On 14.07.2005, at 12:06 Uhr, Per Olesen wrote:
Hi,
How do I avoid hitting the Error page when I upload a file larger than
my
setting for max-size on the multipart-decoder?
I have a page with a file upload. When I submit an upload larger than
allowed,
Tapestry sees this in the service.decode code, and throws a
"org.apache.tapestry.ApplicationRuntimeException" wrapped around a
"org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededExceptio
n",
which results in the Error page being shown.
But I want to go back to the page from where the file upload request
came and
simply show a nice message with "file too large for upload....".
But how do I do that in Tapestry? The error appears before my page
code is
activated.
/Per
--
Per Olesen @ Nordija A/S - www.nordija.com - main#: +45 70 20 25 10
email: [EMAIL PROTECTED] - cell#: +45 23 38 95 81
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]