How to save the file in C#

  var filePath = Path.Combine(folderPath, fileName);
            using (var stream = new FileStream(filePath, FileMode.OpenOrCreate))
            {
                FormFile.CopyTo(stream);
            }

Leave a Reply

Your email address will not be published. Required fields are marked *