Ejemplo n.º 1
0
        public ActionResult UploadFile()
        {
            if (Request.Files.Count > 0)
            {
                var file = Request.Files[0];
                if (file != null && file.ContentLength > 0)
                {
                    var fileName = Path.GetFileName(file.FileName);
                    _azureStorageManager.UploadBlob(fileName, file);
                }
            }

            return(RedirectToAction("Index"));
        }