♻️ Changed the way to clean upload folder

This commit is contained in:
2025-07-27 13:44:21 +08:00
parent e1ebd44ea8
commit 52addc91df
5 changed files with 25 additions and 157 deletions

View File

@@ -142,8 +142,6 @@ public abstract class TusService
{
eventContext.HttpContext.Response.StatusCode = StatusCodes.Status400BadRequest;
await eventContext.HttpContext.Response.WriteAsync(ex.Message);
if (eventContext.Store is TusDiskStore disk)
await disk.DeleteFileAsync(file.Id, eventContext.CancellationToken);
}
finally
{