C# Visual Basic
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
TusClient
TusClientConsole
.gitignore
LICENSE
README.md
TusClient-2012.sln
TusClient-2017.sln

README.md

tus-dotnet-client

.Net client for tus.io Resumable File Upload protocol.

Features

  • tus protocol v1.0.0
  • protocol extension supported: Creation, Termination
  • no external dependencies
  • upload progress events
  • .net 4.0 / .net standard 2.0 / .net core 2.0

Usage

Dim tc As New TusClient.TusClient()
AddHandler tc.Uploading, Sub(bytesTransferred As Integer, bytesTotal As Integer)
                             Dim perc As Decimal = bytesTransferred / bytesTotal * 100.0
                             Console.WriteLine("Up {0:0.00}% {1} of {2}", perc, bytesTransferred, bytesTotal)
                         End Sub

Dim fileURL = tc.Create(ServerURL, testfile)
tc.Upload(fileURL, testfile)
tc.Delete(fileURL)

License

MIT