Skip to content

Files

Latest commit

 

History

History
19 lines (17 loc) · 570 Bytes

OnDeleteComplete-event.md

File metadata and controls

19 lines (17 loc) · 570 Bytes

The OnDeleteComplete event is fired once a file has been deleted.

ℹ️ Note that this event only fires for client requests and not when manually calling the store's methods.

app.UseTus(context => new DefaultTusConfiguration
{
    UrlPath = "/files",
    Store = new TusDiskStore(@"C:\tusfiles\"),
    Events = new Events
    {
        OnDeleteCompleteAsync = ctx =>
        {
            logger.LogInformation($"Deleted file {ctx.FileId} using {ctx.Store.GetType().FullName}");
            return Task.CompletedTask;
        }
    }
});