I am trying to upload a file to a folder in ASP.NET, so far I have gotten the file stream like so:
public void Upload()
        {
            foreach (string file in Request.Files)
            {
                var fileContent = Request.Files[file];
                if (fileContent != null && fileContent.ContentLength > 0)
                {
                    var stream = fileContent.InputStream;
                    var fileName = fileContent.FileName;
                    //you can do anything you want here
                }
            }
            foreach (string key in Request.Form)
            {
                var value = Request.Form[key];
            }
        }
I just dont know how to save it....Im soooooo tired.
 
     
     
    