asp.net mvc file upload ajax post

13,456

Solution 1

Using web controls under MVC application is a real mess. I suggest you to try this sample project. ( Also, there are many useful MVC samples in there )

Solution 2

You may take a look at the jQuery Form plugin which allows you to ajaxify forms that contain file inputs.

Share:
13,456
mike
Author by

mike

Updated on June 07, 2022

Comments

  • mike
    mike almost 2 years

    Hi I was just wondering if its possible to do an ajax post a file in asp.net mvc, basically i have a form with two buttons, one of the buttons extracts images for the selected document and displays them for the user to choose thumbnails for the document he is about to upload. The usee then fills out the rest of the form and then saves the document.

    With the image extraction, I was wondering if it was possible to do that as an ajax post. The other submit button can work as a normal http post Thanks