RepositoryC#
TU

tusdotnet/tusdotnet

.NET server implementation of the Tus protocol for resumable file uploads. Read more at https://tus.io

772stars
78forks
8issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: file-uploads

#1 Repository of the week

1
TINIX TRENDING·Topic: tus

#1 Repository of the week

1
TINIX TRENDING·Topic: owin-middleware

#1 Repository of the week

tusdotnet

NuGet NuGet codecov

"Our aim is to solve the problem of unreliable file uploads once and for all. tus is a new open protocol for resumable uploads built on HTTP. It offers simple, cheap and reusable stacks for clients and servers. It supports any language, any platform and any network." - https://tus.io

tusdotnet is a .NET server implementation of the tus.io protocol that runs on .NET Framework, .NET Standard, .NET 6 and later.

Features

  • Runs on .NET Framework, .NET Standard 1.3+ and .NET 6+ using OWIN or ASP.NET Core
  • Full support for tus 1.0.0 including all major extensions (checksum, checksum-trailers, concatenation, creation, creation-with-upload, upload-defer-length, expiration and termination)
  • Experimental support for IETF's Resumable Uploads For Http (see branch POC/tus2)
  • Fast and reliable
  • Easy to configure
  • Customizable data storage with built-in disk storage (TusDiskStore) and community stores for Azure Blob Storage and S3-compatible storage (AWS S3, MinIO, Cloudflare R2, etc.)
  • MIT licensed

Getting started

dotnet add package tusdotnet
using tusdotnet;

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapTus("/files", async httpContext => new()
{
    // This method is called on each request so different configurations can be returned per user, domain, path etc.
    // Return null to disable tusdotnet for the current request.

    // Where to store data?
    Store = new tusdotnet.Stores.TusDiskStore(@"C:\tusfiles\"),
    Events = new()
    {
        // What to do when the file is completely uploaded?
        OnFileCompleteAsync = async eventContext =>
        {
            var file = await eventContext.GetFileAsync();

            await QueueForProcessing(file);
        }
    }
});

Depending on your infrastructure you might also need to configure Kestrel, IIS or other reverse proxies.

More options, events and middleware usage are available on the wiki.

Try it out

Clone the repo and run one of the test sites. They each launch a small site running tusdotnet and the official JS client so that you can test the protocol on your own machine.

Clients

tus.io keeps a list of clients for a number of different platforms (Android, Java, JS, iOS etc). tusdotnet should work with all of them as long as they support version 1.0.0 of the protocol.

License

This project is licensed under the MIT license, see LICENSE.

Similar Projects

Discover other similar projects and AI models.

RepositoryPHP
ankitpokhrel/tus-php

🚀 A pure PHP server and client for the tus resumable upload protocol v1.0.0

1.5k
Jul 20, 2026
RepositoryTypeScript
transloadit/uppy

The next open source file uploader for web browsers :dog:

31.1k
Dec 1, 2026
RepositoryGo
eventials/go-tus

A pure Go client for the tus resumable upload protocol

186
Jun 12, 2025
RepositoryJava
tomdesair/tus-java-server

Library to receive file uploads via the tus v1.0.0 or IETF Resumable Uploads for HTTP (RUFH) protocols in a Java server environment

177
Nov 15, 2026
RepositoryJavaScript
transloadit/uppy-server

[DEPRECATED] 'Uppy Server' was renamed to 'Companion' and lives inside the Uppy repo no

115
Aug 6, 2018
RepositoryC#
dotnet/efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

14.8k
Nov 27, 2026
RepositoryC#
QuestPDF/QuestPDF

QuestPDF is a modern library for PDF document generation. Its fluent C# API lets you design complex layouts with clean, readable code. Create documents using a flexible, component-based approach.

14.2k
Nov 28, 2026
RepositoryC#
ElectronNET/Electron.NET

:electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor).

7.6k
Nov 27, 2026
RepositoryC#
martinothamar/Mediator

A high performance implementation of Mediator pattern in .NET using source generators.

3.8k
Sep 1, 2026