* Sanitize dictionary overview and export actions * Amend dictionary services with async and attempt pattern + isolate temporary file handling in its own service. * Update OpenAPI schema to match new dictionary bulk actions * Update src/Umbraco.Cms.Api.Management/Services/DictionaryItemImportService.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Cms.Api.Management/Services/DictionaryItemImportService.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Cms.Api.Management/Services/TemporaryFileService.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Update src/Umbraco.Cms.Api.Management/ViewModels/Dictionary/DictionaryImportModel.cs Co-authored-by: Mole <nikolajlauridsen@protonmail.ch> * Refactor - split dictionary import handling into smaller methods * Rename view model due to name clash in new SwaggerGen + update OpenAPI JSON file --------- Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
13 lines
279 B
C#
13 lines
279 B
C#
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace Umbraco.Cms.Api.Management.Services;
|
|
|
|
public interface ITemporaryFileService
|
|
{
|
|
Task<string> GetFilePathAsync(string fileName);
|
|
|
|
Task<string> SaveFileAsync(IFormFile file);
|
|
|
|
Task<bool> DeleteFileAsync(string fileName);
|
|
}
|