The File Server two way host:
IIS
- SelfHost using
Owin
Update the files using asynchonizition
var config = new HttpSelfHostConfiguration("http://localhost:8080");
//make the MaxReceivedMessageSize to MaxValue of int.
config.MaxReceivedMessageSize = int.MaxValue;
//Enable the Buffered TransferMode,make it possible to write and receive file at the same time.
config.TransferMode = TransferMode.Buffered;
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}"
);
HttpSelfHostServer server = new HttpSelfHostServer(config);
server.OpenAsync().Wait();
Console.WriteLine("Server Started..");
HTML5 drag and drop asynchronous multi file upload with ASP.NET WebAPI
Troubleshooting HTTP 405 Errors after Publishing Web API 2 Applications
How to get PUT and DELETE verbs to work with WebAPI on IIS
IIS 7.5 + enable PUT and DELETE for RESTFul service, extensionless