I use Flurl.Http in UWP and I can make a request to upload my photo to the server:
IBuffer buffer = await Windows.Storage.FileIO.ReadBufferAsync(file);
string res = "";
try
{
res = await upload_url.PostMultipartAsync(mp => mp
.AddFile("file", buffer.AsStream(), "story.png", null, (int)buffer.Length)
).ReceiveString();
}
But when I try to upload a video file in the same request form:
IBuffer buffer = await FileIO.ReadBufferAsync(file);
string res = "";
try
{
res = await upload_url.PostMultipartAsync(mp => mp
.AddFile("video_file", buffer.AsStream(), "story.mp4", null, (int)buffer.Length)
).ReceiveString();
}
I get an 413 Error.
All answers I've found are relate to WCF application.
How I can change limit of max request length?:(