We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my code in my MVC C# project. ResponseHtml is always empty on IE11 browser
try { var disposition = new System.Net.Mime.ContentDisposition { FileName = "Test", Inline = false, DispositionType = System.Net.Mime.DispositionTypeNames.Attachment }; Response.Headers.Add("Content-Disposition", disposition.ToString()); return File(fileContent, "application/pdf"); } catch (Exception ex) { Response.StatusCode = 500; return Content(ex.Message, "text/html"); }
and this is the javascript
$.fileDownload($(this).attr('action'), { httpMethod: 'POST', data: $(this).serialize(), failCallback: function (responseHtml, url, error) { debugger }, successCallback: function (data) { document.cookie = "fileDownload=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; } });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This is my code in my MVC C# project. ResponseHtml is always empty on IE11 browser
and this is the javascript
The text was updated successfully, but these errors were encountered: