Folder and file management service
This commit is contained in:
@ -6,8 +6,16 @@ namespace Oqtane.Services
|
||||
{
|
||||
public interface IFileService
|
||||
{
|
||||
Task<List<string>> GetFilesAsync(string Folder);
|
||||
Task<List<File>> GetFilesAsync(int FolderId);
|
||||
Task<List<File>> GetFilesAsync(string Folder);
|
||||
Task<File> GetFileAsync(int FileId);
|
||||
Task<File> AddFileAsync(File File);
|
||||
Task<File> UpdateFileAsync(File File);
|
||||
Task DeleteFileAsync(int FileId);
|
||||
Task<File> UploadFileAsync(string Url, int FolderId);
|
||||
Task<string> UploadFilesAsync(int FolderId, string[] Files, string FileUploadName);
|
||||
Task<string> UploadFilesAsync(string Folder, string[] Files, string FileUploadName);
|
||||
Task DeleteFileAsync(string Folder, string File);
|
||||
Task<byte[]> DownloadFileAsync(int FileId);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user