We have a problem using the file upload within an owin self hosted application. No matter if using the Upload-control or Drag’n’Drop.
The maximum file size is limited to the asp.net default of 4096 byte. We could increase this limit if we use the web.config but we are using Owin self-host and therefor there is no web.config.
Do you have any idea how to increase the upload limit for owin self hosted applications?
br
Bernhard
StackTrack for Upload-Control:
bei System.Web.HttpRequest.GetEntireRawContent()
bei System.Web.HttpRequest.GetMultipartContent()
bei System.Web.HttpRequest.FillInFilesCollection()
bei System.Web.HttpRequest.EnsureFiles()
bei System.Web.HttpRequest.get_Files()
bei Wisej.Web.Upload.Wisej.Core.IWisejHandler.ProcessRequest(HttpContext context)
bei Wisej.Core.ResponseManager.OnPostback(Session session, HttpContext context)
bei Wisej.Core.ResponseManager.ProcessRequest(ServiceType service, Object message)
StackTrace Drag’n’Drop
bei System.Web.HttpRequest.GetEntireRawContent()
bei System.Web.HttpRequest.GetMultipartContent()
bei System.Web.HttpRequest.FillInFilesCollection()
bei System.Web.HttpRequest.EnsureFiles()
bei System.Web.HttpRequest.get_Files()
bei Wisej.Web.DragDrop.Wisej.Core.IWisejHandler.ProcessRequest(HttpContext context)
bei Wisej.Core.ResponseManager.OnPostback(Session session, HttpContext context)
bei Wisej.Core.ResponseManager.ProcessRequest(ServiceType service, Object message)
You can use web.config with our owin implementation, like in IIS. If you are bundling everything in a single exe you can either extract web.config from embedded resources or you can change the global web config in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config.
Please login first to submit.