ASP.Net MVC Form Plugin and jQuery File Download

Can someone give me an example of how to do this with ASP.Net MVC? I performed this example on the site on the file upload tab, but I canโ€™t get a decent answer. My controller believes that this is not AJAXRequest and is trying to do RedirectToAction, but that does not change the page after publication.

+4
source share
4 answers

I wrote a blog post on how to do this here .

+14
source

Uploading is not an AJAX request, it clearly states that you cannot upload a file using an XMLHttpRequest object to execute using an iframe as the target. Try to handle the download in the same way as for a regular record other than AJAX.

0
source

Answer: you cannot use AJAX or use iFrame

-6
source

Source: https://habr.com/ru/post/1286301/


All Articles