IFileService.cs 745 B

123456789101112131415161718192021222324
  1. using Microsoft.AspNetCore.Http;
  2. using MTWorkHR.Application.Models;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace MTWorkHR.Application.Services.Interfaces
  9. {
  10. public interface IFileService
  11. {
  12. string UploadFile(IFormFile file);
  13. List<string> UploadFiles(List<IFormFile> files);
  14. Task<bool> CopyFileToActualFolder(List<AttachmentDto> attachments);
  15. bool CopyFileToActualFolder(string FileName);
  16. bool DeleteFileFromTempFolder(string FileName);
  17. string GetTempAttachmentPath();
  18. string GetActualAttachmentPath();
  19. Task<Tuple<MemoryStream, string, string>> GetFileDownloadInfo(string fileUrl);
  20. }
  21. }