问题描述
当我保存文件时,我收到了像这张图片这样的错误,我也在服务器上收到了这个错误。我的本地没有问题。有人有想法吗?
我的保存代码如下;
public async Task<string> Upload(Stream stream,string filePath)
{
filePath = PrepareServerPath(filePath);
await CreateDirectoryIfNotExists(filePath);
var fileStream = new FileStream(filePath,FileMode.OpenorCreate);
stream.copyTo(fileStream);
fileStream.Flush();
fileStream.Close();
await Task.Fromresult(true);
return filePath;
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)