So, essentially I'm trying to send a file through a post request. The file data is stored as a string.
var fd = new FormData();
fd.append('fileString', file.attachmentString);
fd.append('fileName', file.fileName);
return $.ajax({
url: baseUrl + url,
data: fd,
cache: false,
processData: false,
contentType: false,
type: 'POST'
});
This works fine up to 21MB, then fails at 22MB+
The request will never reach the controller for the 22MB+ request, instead returning the error "error" with status 0.
[HttpPost("SendFile")]
public async Task<int> AddFile(MyFileData fileData)
That is the post request, and below is the MyFileData
public class MyFileData
{
public string FileString { get; set; }
public string FileName { get; set; }
}
This all works perfectly up to 22MB, then fails to reach the request. Any ideas?