我正在使用fineuploader上传文件。对于200MB以下的文件,一切正常。一切都失败了。创建一个新文件,但它是空的(意思是0kb)上传文件在.net MVC
已经修改我的web.config允许上传500mb。但似乎没有帮助。
的web.config:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000" />
</requestFiltering>
</security>
和
<httpRuntime targetFramework="4.5" maxRequestLength="512000" executionTimeout="900" requestLengthDiskThreshold="512000" />
控制器:200MB以上
[HttpPost]
public ActionResult Upload(string qqfile)
{
try
{
Stream stream = Request.Files.Count > 0 ? Request.Files[0].InputStream : Request.InputStream;
string filePath = Path.Combine(@"C:\Temp\100", qqfile);
using (Stream file = System.IO.File.OpenWrite(filePath))
{
stream.CopyTo(file);
}
....
为什么我不能上传文件?
http://forums.asp.net/t/1646283.aspx/1和http://stackoverflow.com/a/6472631/118298 2可能有所帮助 – Yasser 2013-02-19 17:02:40