IFileService.cs 870 B

12345678910111213141516171819202122232425
  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. Task<string> UploadFile(IFormFile file);
  13. Task<List<string>> UploadFiles(List<IFormFile> files);
  14. Task<bool> CopyFileToActualFolder(List<AttachmentDto> attachments);
  15. bool CopyFileToActualFolder(string FileName);
  16. bool DeleteFileFromTempFolder(string FileName);
  17. void CopyFileToCloud(ref List<AttachmentDto> attachments);
  18. string GetTempAttachmentPath();
  19. string GetActualAttachmentPath();
  20. Task<Tuple<MemoryStream, string, string>> GetFileDownloadInfo(string fileUrl);
  21. Task<BlobObject> Download(string url);
  22. }
  23. }