I've have been trying to automate a test in to upload a text file to a web api which uses flowjshandler, all running in c# .net core and linux docker containers. The test program uploads the file without exceptions when run from visual studio. However if I run the test program and web api inside a container I get this exception in the asp .net core web api framework:
Line length limit 100 exceeded., Microsoft.AspNetCore.WebUtilities,
at Microsoft.AspNetCore.WebUtilities.BufferedReadStream.d__39.MoveNext()
I've look at Microsoft.AspNetCore.WebUtilities
and found where the error is coming from but not sure how to avoid 100 character limit. I have tried to vary the upload files.
It is a multi part message with content
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarym45GFZc25WVhjtVB
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowChunkNumber"
1
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowChunkSize"
1048576
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowCurrentChunkSize"
440
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowTotalSize"
440
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowIdentifier"
440-Boundarystxt
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowFilename"
Boundarys.txt
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowRelativePath"
Boundarys.txt
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="flowTotalChunks"
1
------WebKitFormBoundarym45GFZc25WVhjtVB
Content-Disposition: form-data; name="file"; filename="Boundarys.txt"