using System.IO;
using Microsoft.AspNetCore.Http;

namespace StudyBlog.Services
{
    public class UploadFileService
    {
        public async void Upload(string path, string fileName, IFormFile file)
        {
            using var stream = new FileStream(Path.Combine(path, fileName), FileMode.Create);
            await file.CopyToAsync(stream);
        }

    }
}