Hello, I try upload file excel, but there show me this error:
FormatException: Input string was not in a correct format.
System.Number.StringToNumber(ReadOnlySpan<char> str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, bool parseDecimal)
84: var file = Request.Form.Files;
also I try this IFormFile file = Request.Form.Files[0]; and same error
I send the file from ajax
var formData = new FormData();
formData.append('files', $('#FileUpload1')[0].files[0]);
formData.append('canal', $("#proviene option:selected").text());
$.ajax({
url: "/Facturas/import",
type: 'POST',
data: formData,
I use ASP.NET core 2.1 mvc
Also, it is strange, another computer is working, but on the server is not working. Some idea?
Thanks!!