VOOZH about

URL: https://www.nuget.org/packages/tusdotnet/

⇱ NuGet Gallery | tusdotnet 2.11.1




👁 Image
tusdotnet 2.11.1

dotnet add package tusdotnet --version 2.11.1
 
 
NuGet\Install-Package tusdotnet -Version 2.11.1
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="tusdotnet" Version="2.11.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="tusdotnet" Version="2.11.1" />
 
Directory.Packages.props
<PackageReference Include="tusdotnet" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add tusdotnet --version 2.11.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: tusdotnet, 2.11.1"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package tusdotnet@2.11.1
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=tusdotnet&version=2.11.1
 
Install as a Cake Addin
#tool nuget:?package=tusdotnet&version=2.11.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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, .NET6 and later.

Comments, ideas, questions and PRs are welcome!

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
  • MIT licensed

Install

Visual Studio

PM> Install-Package tusdotnet

.NET CLI

> dotnet add package tusdotnet

Configure

On .NET6 and later:


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 file is completely uploaded?
 OnFileCompleteAsync = async eventContext =>
 {
 tusdotnet.Interfaces.ITusFile file = await eventContext.GetFileAsync();
 Dictionary<string, tusdotnet.Models.Metadata> metadata = await file.GetMetadataAsync(eventContext.CancellationToken);
 using Stream content = await file.GetContentAsync(eventContext.CancellationToken);

 await DoSomeProcessing(content, metadata);
 }
 }
});

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

More options and events are available on the wiki.

<details> <summary><h3>On older frameworks, use the tusdotnet middelware</h3></summary>

Create your Startup class as you would normally do. Add a using statement for tusdotnet and run UseTus on the app builder. Depending on your infrastructure you might also need to configure Kestrel, IIS or other reverse proxies. More options and events are available on the wiki.


app.UseTus(httpContext => new DefaultTusConfiguration
{
 // 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.

 // c:\tusfiles is where to store files
 Store = new TusDiskStore(@"C:\tusfiles\"),
 // On what url should we listen for uploads?
 UrlPath = "/files",
 Events = new Events
 {
 OnFileCompleteAsync = async eventContext =>
 {
 ITusFile file = await eventContext.GetFileAsync();
 Dictionary<string, Metadata> metadata = await file.GetMetadataAsync(eventContext.CancellationToken);
 using Stream content = await file.GetContentAsync(eventContext.CancellationToken);

 await DoSomeProcessing(content, metadata);
 }
 }
});

</details>

Test sites

If you just want to play around with tusdotnet/the tus protocol, 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.

Test sites are available for:

  • ASP.NET Core 6 (.NET 6.0)
  • ASP.NET Core 3.1 (.NET Core 3.1)
  • ASP.NET Core 3.0 (.NET Core 3.0)
  • ASP.NET Core 2.2 (.NET Core 2.2)
  • ASP.NET Core 2.2 (.NET Framework 4.6.2)
  • ASP.NET Core 2.1 (.NET Core 2.1)
  • OWIN (.NET Framework 4.5.2)

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 .

Want to know more?

Check out the wiki or create an issue

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp1.0 netcoreapp1.0 was computed.  netcoreapp1.1 netcoreapp1.1 was computed.  netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 is compatible. 
.NET Standard netstandard1.3 netstandard1.3 is compatible.  netstandard1.4 netstandard1.4 was computed.  netstandard1.5 netstandard1.5 was computed.  netstandard1.6 netstandard1.6 was computed.  netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net452 net452 is compatible.  net46 net46 was computed.  net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen30 tizen30 was computed.  tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Universal Windows Platform uap uap was computed.  uap10.0 uap10.0 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1 112,481 2/12/2026
2.11.0 85,790 11/24/2025
2.10.0 184,387 6/17/2025
2.9.0 62,350 4/24/2025
2.8.1 65,212 2/14/2025
2.8.0 521,598 2/1/2024
2.7.2 273,461 11/11/2023
2.7.1 148,758 3/11/2023
2.7.0 266,008 11/9/2022
2.6.2 59,502 9/11/2022
2.6.0 255,713 2/18/2022
2.5.0 99,460 11/16/2021
2.4.0 117,294 5/17/2021
2.3.0 164,526 3/30/2020
2.2.2 8,953 12/17/2019
2.2.1 69,460 6/4/2019
2.2.0 4,613 5/6/2019
2.1.3 6,478 11/16/2018
2.1.2 7,299 6/25/2018
Loading failed