Use the IFileStreamSecurityValidator in the temporary file service

This commit is contained in:
Bjarke Berg
2023-08-28 12:17:34 +02:00
parent 6fbf04592c
commit 1b3f7afe20
3 changed files with 20 additions and 3 deletions

View File

@@ -25,8 +25,11 @@ public abstract class TemporaryFileControllerBase : ManagementApiControllerBase
.Build()),
TemporaryFileOperationStatus.NotFound => NotFound(new ProblemDetailsBuilder()
.WithTitle("The temporary file was not found")
.Build()),
.WithTitle("The temporary file was not found")
.Build()),
TemporaryFileOperationStatus.UploadBlocked => NotFound(new ProblemDetailsBuilder()
.WithTitle("The temporary file was blocked by a validator")
.Build()),
_ => StatusCode(StatusCodes.Status500InternalServerError, new ProblemDetailsBuilder()
.WithTitle("Unknown temporary file operation status.")
.Build()),