Skip to content

TusClient

SonDev edited this page Oct 23, 2023 · 2 revisions

TusClient.Upload(IJSObjectReference fileObjectRef, TusOptions options)

return value : TusUpload

  • IJSObjectReference fileObjectRef : a File in JavaScript as an IJSObjectReference
  • TusOptions options : TusOptions

Returns a TusUpload based on TusOptions.

TusClient.Upload(JsFile file, TusOptions options)

return value : TusUpload

  • JsFile file : a JsFile From the FileInputElement
  • TusOptions options : TusOptions

Returns a TusUpload based on TusOptions.

TusClient.IsSupported()

return value : bool

A boolean indicating whether the current browser/environment has the features necessary to use tus-js-client.

TusClient.CanStoreUrls()

return value : bool

A boolean indicating whether the current environment allows storing URLs enabling the corresponding upload to be resumed. The Web Storage API is provided but cannot be used without causing security errors. In these special situations or if no Web Storage API is available, canStoreURLs is set to false.

TusClient.GetFileInputElement(ElementReference htmlElement)

return value : FileInputElement

Returns a FileInputElement based on the ElementReference.

TusClient.DisposeAsync()

Dispose TusClient