tusdotnet ships with a single built in store that saves files to disk. It is simply configured by providing a directory on disk where to store files:
Store = new TusDiskStore(@"C:\tusfiles\", deletePartialFilesOnConcat: true)
Optional features provided to the constructor:
deletePartialFilesOnConcat
-true
to delete all partial files when afinal
file is created using the concatenation extension. Defaults tofalse
.bufferSize
- Used to configure the read and write buffer used by the store.fileIdProvider
- The file id provider to use when creating files. The provider gives support for custom file ids besides from the built in IDs based on GUIDs.