What is the best way to upload files with ASP.NET MVC 2?

后端 未结 2 867
醉话见心
醉话见心 2021-01-12 22:04

What is the best method for uploading files of variable size (either very large or very small to an ASP.NET MVC 2 application file system)?

This is what I understa

2条回答
  •  离开以前
    2021-01-12 23:04

    If I remember correctly from ASP.NET 2.0 large files are being flushed to disk, so even using HttpPostedFileBase there should not be any memory/performance problems. I am not sure asynccontrollers is an solutions here, asynccontrollers is for long running server processes. For an example off AsyncControllers see http://www.aaronstannard.com/post/2011/01/06/asynchonrous-controllers-ASPNET-mvc.aspx

提交回复
热议问题