giometrix / Xtensible.TusDotNet.Azure

9 stars 5 forks source link

Xtensible.TusDotNet.Azure

Nuget

An Azure Blob Storage extension for tusdotnet; .NET's most popular implementation of the tus protocol.

What is tus?

Tus is a web based protocol for resumable uploads. Implementations and client libraries exist for many platforms.

What is tusdotnet?

tusdotnet is a popular implementation of the tus protocol for .net.

Why do I need Xtensible.TusDotNet.Azure?

Tusdotnet only comes with a disk storage implementation. This extension allows you to use blobstorage instead of local (or network attached) disk.

Implemented Extensions

The tus protocol offers a few extensions. The following extensions are implemented:

Why aren't the following supported?

Azurite

Azurite is the latest, and recommended Azure Storage emulator to use for testing and local development. Unfortunately, it does not yet support tags (see issue). This is problematic because tags is how this library queries for expired files. To work around this, I have split out the expiration stuff into a separate interface ITusExpirationDetailsStore and implemented NullExpirationDetailsStore.

This allows you to use an external database (for just dev, or both prod and dev), or you can use NullExpirationDetailsStore in dev to forego using the expiration feature when using Azurite.