所以我在https://github.com/stewartm83/angular-fileupload-sample的c#中使用ng-file-upload遇到了这个错误。如果我运行他的现场演示,我可以看到相同的问题,其中较大的图像不上传。
System.IO.IOException: Error reading MIME multipart body part. ---> System.Web.HttpException: The client disconnected.
我认为这是由于您上传的图片大小所致。当我在演示中上传更大的图像时,它似乎只上传了1/8的图像。我尝试合并
<httpRuntime targetFramework="4.5" maxRequestLength="30000000"> and
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="30000000">
</requestFiltering>
</security>
进入您的WebConfig文件,但没有其他许多解决方案的运气。有趣的是,你正在断开客户端,这是我不希望的。我仍然没有找到解决方案,所以如果有人有一个很好的线索。