MVC3 Action File Size Limit

后端 未结 1 1049
庸人自扰
庸人自扰 2020-12-08 07:27

I\'m implementing a jquery based file upload plugin http://blueimp.github.com/jQuery-File-Upload/. There is a sample MVC3 app that you can download https://github.com/maxpav

1条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 08:12

    You could set upload size limit in web.config for concrete controller action using location element:

    
        
            
                
            
        
    
    

    Where Home is a controller name and UploadFiles is an action name. Size limit is 40MB here.

    Still, using Http Handler to process file uploads is not a bad solution if you ask me.

    0 讨论(0)
提交回复
热议问题