using PARR.API.Domain; namespace PARR.API.Services.Interfaces { public interface IFileService { Task UploadAsync(IFormFile formFile, string[] rootFolderWithoutStorage); /// /// Размер файла не превышает лимит? /// /// /// /// bool IsNotExceededLimit(IFormFile formFile, int limitMb); /// /// Разрешено это расширение? /// /// /// /// bool IsExtensionAllowed(IFormFile formFile, string[] allowedExtensions); } }