var current = System.Web.HttpContext.Current; if (current != null) { var files = current.Request.Files; if (files != null && files.Count > 0) { var file = files[0]; MediaContent content = new MediaContent(); content.StreamFileData = file.InputStream; content.FileName = file.FileName; content.ContentType = file.ContentType; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)