Могу ли я увеличить maxRequestLength запроса ASP.NET для действия контроллера MVC с дополнительными параметрами?
У меня есть UploadController с ActionResult, который выглядит примерно так.
[HttpPost]
public ActionResult VideoUpload(int memberId)
{
var status= _docRepo.SaveDocument(DocumentType.Video, Request.Files, memberId);
return Json(new { success = true, status = status});
}
Файлы могут быть очень большими, я увеличил maxRequestLenght в web.config и могу загружать файлы, но меня беспокоит проблема безопасности. Я попробовал это, но ничего не вышло:
<location path="VideoUpload">
<system.web>
<httpRuntime maxRequestLength="1024000" executionTimeout="600" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1024000"/>
</requestFiltering>
</security>
</system.webServer>
</location>
Есть идеи? (метод загрузки использует swfupload)