雨鸣静声

关注

Upload文件时出现"Cannot access a closed file"错误

雨鸣静声

关注

阅读 142

2022-12-23

本地能上传文件,部署到服务器上就报 Cannot access a closed file 错误,以下是解决方法:

<System.Web>
<httpRuntime executionTimeout="90" maxRequestLength="20000" useFullyQualifiedRedirectUrl="false" requestLengthDiskThreshold="8192"/>
</System.Web>

最重要是requestLengthDiskThreshold  此属性
设置输入流缓冲阈值。



相关推荐

火热如冰

chgrp: cannot access ‘ ‘ : No such file or dirctory

火热如冰 116 0 0

村里搬砖的月野兔

Django 文件上传时出现 500 错误

村里搬砖的月野兔 29 0 0

暮晨夜雪

File Upload

暮晨夜雪 47 0 0

天涯学馆

File upload error - unable to create a temporary file in 错误上传文件的时候thnkphp怎么回事

天涯学馆 141 0 0

westfallon

IAR出现错误:get alternative file

westfallon 146 0 0

胡桑_b06e

Laravel文件验证提示 The file failed to upload.

胡桑_b06e 145 0 0

全栈学习笔记

Axios 中的文件上传(Upload File)方法

全栈学习笔记 13 0 0

雪域迷影

multiple file upload 多文件上传精典

雪域迷影 138 0 0

山竹山竹px

整合minio时出现的错误

山竹山竹px 19 0 0

凛冬已至夏日未远

HDFS - upload file to hdfs

凛冬已至夏日未远 88 0 0

精彩评论(0)

0 0 举报