views:

446

answers:

1

Hello,

I have a file upload form which makes use of the jQuery Form plugin to upload 3 files via the ajaxSubmit() command.

Success and Error Callbacks are provided to ajaxSubmit() to display the result in a <div> to the user.

When the uploaded files cause the Request length to be exceeded the MVC framework throws an HttpException, and the ajaxSubmit() never seems to get beyond the beforeSubmit().

From debugging it appears that a POST for this ajaxSubmit call is never made. The provided error() and success() callbacks are never invoked. This appears to be caused by the way the MVC Framework is handling the exception.

What I require is a way of displaying an appropriate error message in the <div> when this occurs.

I have considered client side validation but checking file sizes without using Flash/ActiveX doesn't seem plausible.

Thanks.

A: 

Hi,

Did you find the solution to this problem. I am also having the same problem.

Bye.

Manish Shrestha