This question is locked. New answers and comments are not allowed.
Hi Telerik,
I am using the MVC Upload control and am running into a problem where the upload attachments are cleared after every post. I have it on a form, and when the form is submitted, I POST to the controller, where I run some server side validation. If the server side Validation fails, I set the ValidationMessage to display the error and return View(). However, after the POST, all attachment info is cleared. Is there some way to preserve the attachment info after the POST, or to prevent the Upload control from clearing if the form fails server side validation?
I am using the MVC Upload control and am running into a problem where the upload attachments are cleared after every post. I have it on a form, and when the form is submitted, I POST to the controller, where I run some server side validation. If the server side Validation fails, I set the ValidationMessage to display the error and return View(). However, after the POST, all attachment info is cleared. Is there some way to preserve the attachment info after the POST, or to prevent the Upload control from clearing if the form fails server side validation?