tusdotnet 2.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package tusdotnet --version 2.1.2
NuGet\Install-Package tusdotnet -Version 2.1.2
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.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add tusdotnet --version 2.1.2
#r "nuget: tusdotnet, 2.1.2"
#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.
// Install tusdotnet as a Cake Addin
#addin nuget:?package=tusdotnet&version=2.1.2

// Install tusdotnet as a Cake Tool
#tool nuget:?package=tusdotnet&version=2.1.2

tusdotnet

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 both .NET 4.x and .NET Core!

Comments, ideas, questions and PRs are welcome 😃

Features

  • Runs on OWIN and ASP.NET Core (on both .NET Framework and .NET Core)
  • Full support for tus 1.0.0 including all major extensions (checksum, concatenation, creation, upload-defer-length, expiration and termination)
  • Fast and reliable
  • Easy to configure
  • Customizable data storage
  • MIT licensed

Install

Package manager

PM> Install-Package tusdotnet

.NET CLI

> dotnet add tusdotnet

Configure

Create your Startup class as you would normally do. Add a using statement for tusdotnet and run UseTus on the app builder. More options and events are available on the wiki.

app.UseTus(context => new DefaultTusConfiguration
{
    // 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 ctx =>
        {
            var file = await ((ITusReadableStore)ctx.Store).GetFileAsync(ctx.FileId, ctx.CancellationToken);
            await DoSomeProcessing(file);
        }
    }
});

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 OWIN (.NET Framework 4.5.2), ASP.NET Core 1.1 (.NET Core 1.1) and ASP.NET Core 2.0 (.NET Framework 4.6.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 LICENSE.

Want to know more?

Check out the wiki, create an issue or contact me 😃

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.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 was computed. 
.NET Standard netstandard1.3 is compatible.  netstandard1.4 was computed.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (15)

Showing the top 5 NuGet packages that depend on tusdotnet:

Package Downloads
Apprio.Enablement.Business.Tokens

Package Description

MSFactory.ToolKits

Package Description

Zxs.Kernel.Core

18f61d170f8995cebb6bf4ef17b100567e490b11

Zxs.Kernel.Dapper

18f61d170f8995cebb6bf4ef17b100567e490b11

Zxs.Kernel.Buildin

18f61d170f8995cebb6bf4ef17b100567e490b11

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on tusdotnet:

Repository Stars
Squidex/squidex
Headless CMS and Content Managment Hub
Version Downloads Last updated
2.8.0 11,664 2/1/2024
2.7.2 38,556 11/11/2023
2.7.1 85,131 3/11/2023
2.7.0 207,553 11/9/2022
2.6.2 27,312 9/11/2022
2.6.0 186,954 2/18/2022
2.5.0 84,380 11/16/2021
2.4.0 99,503 5/17/2021
2.3.0 129,385 3/30/2020
2.2.2 7,628 12/17/2019
2.2.1 67,994 6/4/2019
2.2.0 3,448 5/6/2019
2.1.3 5,611 11/16/2018
2.1.2 6,097 6/25/2018
2.1.1 3,314 1/30/2018
2.1.0 2,362 1/3/2018
2.0.0 2,396 11/10/2017
1.4.0 2,261 8/2/2017
1.3.0 2,272 3/19/2017
1.2.0 2,227 1/11/2017
1.1.0 2,139 12/9/2016
1.0.0 2,477 11/17/2016