Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 519 Bytes

OnCreateComplete-event.md

File metadata and controls

19 lines (17 loc) · 519 Bytes

The OnCreateComplete event is fired once a file has been created.

ℹ️ 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
	{
		OnCreateCompleteAsync = ctx =>
		{
			logger.LogInformation($"Created file {ctx.FileId} using {ctx.Store.GetType().FullName}");
			return Task.CompletedTask;
		}
	}
});