move UI logic from FileService to FileManager, add progressive retry logic, update file attributes if uploading a new version of a file, clean up temporary artifacts on failure, improve upload efficiency
This commit is contained in:
@ -66,27 +66,6 @@ namespace Oqtane.Services
|
||||
/// <returns></returns>
|
||||
Task<File> UploadFileAsync(string url, int folderId, string name);
|
||||
|
||||
/// <summary>
|
||||
/// Upload one or more files.
|
||||
/// </summary>
|
||||
/// <param name="folderId">Target <see cref="Folder"/></param>
|
||||
/// <param name="files">The files to upload, serialized as a string.</param>
|
||||
/// <param name="fileUploadName">A task-identifier, to ensure communication about this upload.</param>
|
||||
/// <returns></returns>
|
||||
Task<string> UploadFilesAsync(int folderId, string[] files, string fileUploadName);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Upload one or more files.
|
||||
/// </summary>
|
||||
/// <param name="folder">Target <see cref="Folder"/>
|
||||
/// TODO: todoc verify exactly from where the folder path must start
|
||||
/// </param>
|
||||
/// <param name="files">The files to upload, serialized as a string.</param>
|
||||
/// <param name="fileUploadName">A task-identifier, to ensure communication about this upload.</param>
|
||||
/// <returns></returns>
|
||||
Task<string> UploadFilesAsync(string folder, string[] files, string fileUploadName);
|
||||
|
||||
/// <summary>
|
||||
/// Get / download a file (the body).
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user