How do you send larger than ~28MB files using HttpClient

50 Views Asked by At

Sample 1

Sample 2

Ok, I've been struggling with this for a few days now and can't find anything definitive to resolve this. In fact most of what I have read suggests this should work.

In summary.

I have a Windows Forms application (Dot.Net 4.7.2) sending files to an ASP.Net Core 2.2 website (not WebApi)

For whatever reason, I cannot send files or data greater than ~25MB, anything less is fine. Whatever method I use to send the file (>~25MB) response back from the server is

StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: System.Net.Http.StreamContent

I've read lots of articles on this and I cannot find a solution. If fact everything I have read suggests this shouldn't even be a problem.

The code I've used is in the samples linked above

I will keep digging, but, any help would be much appreciated.

This link explains and resolves the problem

0

There are 0 best solutions below