将mime多部分身体部位写入输出流时出错 [英] error writing mime multipart body part to output stream

查看:842
本文介绍了将mime多部分身体部位写入输出流时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有执行异步文件上传的代码,该代码在我的dev vm上可以正常工作,但是在将其部署到客户端系统后,仍然出现此错误:

I have code that does async file uploads which works fine on my dev vm but after I deployed it to the client system, I keep getting this error:

错误写入mime多部分主体以输出流"

"error writing mime multipart body part to output stream"

我知道这是引发错误的行,但我似乎无法弄清楚原因:

I know this is the line that is throwing the error but I can't seem to figure out why:

//Read the form data and return an async task.
await Request.Content.ReadAsMultipartAsync(provider);

文件大小只有1MB,我什至尝试了不同大小的文件类型.为什么会发生这种情况,我需要一些想法

The file size was only 1MB and I even tried different file types with much smaller sizes. Why would this occur, I need ideas

推荐答案

由于错误消息中提到写入输出流时出现错误,因此您可以检查正在写入响应的文件夹是否具有必要的权限您的应用程序来编写.

Since the error message is mentioning about an error while writing to output stream, can you check if the folder to where the response is being written out has necessary permissions for your application to write.

这篇关于将mime多部分身体部位写入输出流时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆