如何在asp.net中上传大文件 [英] How to upload a large files in asp.net
问题描述
亲爱的先生,
我在asp.net项目中工作我在服务器上大量上传文件时遇到了一些问题
当我在服务器上执行时,这个大量的文件没有上传,如果这个文件在本地主机或本地机器上传很容易上传。
我在Webconfig中工作文件也是如下更改
Dear Sir,
I am working in asp.net project i have some problem when a large amount of file upload in server
this large amount of file does not upload when i am executed on server and if this files upload on local host or local machine upload easily.
I am working in Webconfig file also this are changes as follows
<system.web>
<httpruntime maxrequestlength="1024000" executiontimeout="240" requestvalidationmode="2.0" />
</system.web>
但是这个工作在本地主机上不在服务器上,所以请尽快给我任何信息或代码 。
我怀疑这段代码可以在IIS-7或其他IIS上运行请尽快给我回答......
感谢先进!!
But this work on local host machine not in server so please give me any information or code as soon as possible.
I have one doubt this code can be run on IIS-7 or other IIS Please try to give me answer as soon as possible...
Thanks in advanced !!
推荐答案
使它成为:
make it:
<httpRuntime executionTimeout="110" maxRequestLength="1000000" requestLengthDiskThreshold="80" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="5000" enableKernelOutputCache="true" enableVersionHeader="true" requireRootedSaveAsPath="true" enable="true" shutdownTimeout="90" delayNotificationTimeout="5" waitChangeNotification="0" maxWaitChangeNotification="0" enableHeaderChecking="true" sendCacheControlHeader="true" apartmentThreading="false"/>
这篇关于如何在asp.net中上传大文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!