Author: Henrik's Blog | Posted on: 3/1/2012 4:43:00 AM | Views : 862

HTML Form File upload (defined in RFC 1867 ) is a classic mechanism for uploading content to a Web server and is supported by all browsers that I am aware of. This blog shows how to handle Form File Upload in ASP.NET Web API asynchronously using the Task-based pattern introduced in .NET 4 and enhanced in .NET 4.5. Using ASP.NET Web API you can upload files of any size when self hosted (well, up to System.Int64.MaxValue which in practice is "any size"). ASP.NET has a maximum limit of 2G in terms of file size that you can upload. What is HTML File Upload? Let's first remind ourselves what HTML File Upload is. If you don't need to brush up on HTML file upload then you can just skip to the next section. You enable support for HTML File Upload in...(read more) ...

Go to the complete details ...