tusdotnet 2.11.2
dotnet add package tusdotnet --version 2.11.2
NuGet\Install-Package tusdotnet -Version 2.11.2
<PackageReference Include="tusdotnet" Version="2.11.2" />
<PackageVersion Include="tusdotnet" Version="2.11.2" />
<PackageReference Include="tusdotnet" />
paket add tusdotnet --version 2.11.2
#r "nuget: tusdotnet, 2.11.2"
#:package tusdotnet@2.11.2
#addin nuget:?package=tusdotnet&version=2.11.2
#tool nuget:?package=tusdotnet&version=2.11.2
tusdotnet
"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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
| Universal Windows Platform | uap was computed. uap10.0 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.5.2
- Microsoft.AspNetCore.Http.Abstractions (>= 1.1.1)
- Microsoft.Owin (>= 4.2.2)
- System.Buffers (>= 4.5.1)
-
.NETStandard 1.3
- Microsoft.AspNetCore.Http (>= 1.1.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 1.1.1)
- NETStandard.Library (>= 1.6.1)
- System.Buffers (>= 4.5.1)
- System.Reflection.TypeExtensions (>= 4.3.0)
- System.Security.Cryptography.Algorithms (>= 4.3.0)
-
.NETStandard 2.0
- Microsoft.AspNetCore.Http (>= 2.1.22)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.1)
- System.Buffers (>= 4.5.1)
- System.Reflection.TypeExtensions (>= 4.7.0)
- System.Security.Cryptography.Algorithms (>= 4.3.1)
-
net6.0
- No dependencies.
NuGet packages (19)
Showing the top 5 NuGet packages that depend on tusdotnet:
| Package | Downloads |
|---|---|
|
Apprio.Enablement.Business.Tokens
Package Description |
|
|
Xtensible.TusDotNet.Azure
An Azure Blob Storage extension for tusdotnet; .NET's most popular implementation of the tus protocol. |
|
|
tusdotnet.Stores.S3
tusdotnet.Stores.S3 allows the usage of S3 as the Storage medium for TUS uploads |
|
|
MSFactory.ToolKits
Package Description |
|
|
Zxs.Kernel.Core
b87bf69c9650ef2ac3616e2f5563adb45e42b84b |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on tusdotnet:
| Repository | Stars |
|---|---|
|
Squidex/squidex
Headless CMS and Content Managment Hub
|
|
|
842549829/Panda
Abp.vNext + EF Core The microservices Open source framework project supports the implementation of message push workflow certification centers based on OAuth2.0
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.11.2 | 141 | 6/24/2026 |
| 2.11.1 | 120,292 | 2/12/2026 |
| 2.11.0 | 89,015 | 11/24/2025 |
| 2.10.0 | 186,620 | 6/17/2025 |
| 2.9.0 | 63,333 | 4/24/2025 |
| 2.8.1 | 65,594 | 2/14/2025 |
| 2.8.0 | 524,484 | 2/1/2024 |
| 2.7.2 | 274,198 | 11/11/2023 |
| 2.7.1 | 149,307 | 3/11/2023 |
| 2.7.0 | 266,197 | 11/9/2022 |
| 2.6.2 | 59,763 | 9/11/2022 |
| 2.6.0 | 255,920 | 2/18/2022 |
| 2.5.0 | 99,497 | 11/16/2021 |
| 2.4.0 | 117,405 | 5/17/2021 |
| 2.3.0 | 164,966 | 3/30/2020 |
| 2.2.2 | 8,959 | 12/17/2019 |
| 2.2.1 | 69,469 | 6/4/2019 |
| 2.2.0 | 4,634 | 5/6/2019 |
| 2.1.3 | 6,484 | 11/16/2018 |
Release notes at https://github.com/tusdotnet/tusdotnet/releases