tusd

API

Resumable file upload server for the open tus protocol

Fiyat
Free, open source
Erişim
None built in; auth through hooks

Hakkında

tusd is the official reference server for tus, an open HTTP protocol for resumable file uploads. Uploads of any size pause and resume after network errors and land on local disk, S3 or an S3-compatible store, Google Cloud Storage or Azure Blob Storage. Hooks handle auth and processing.

Neler yapabilirsin

  • Accept large file uploads that resume after a dropped connection
  • Write uploaded files to local disk, S3-compatible storage, GCS or Azure
  • Validate, authorize and post-process uploads through HTTP or gRPC hooks

Başlarken

  1. Download the tusd binary or run the tusproject/tusd Docker image
  2. Start tusd with an upload directory or an S3 bucket
  3. Point tus-js-client or Uppy at the /files/ endpoint

Örnek kod

tusd -upload-dir=./data   # or: tusd -s3-bucket=my-bucket -s3-endpoint https://s3.example.com

// in the browser, with tus-js-client
const upload = new tus.Upload(file, {
  endpoint: "http://localhost:8080/files/",
  onError: (error) => console.log("Failed because: " + error),
  onSuccess: () => console.log("Uploaded to " + upload.url),
})
upload.start()

Ayrıntılar

Barındırma
Kendi sunucunda
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript, Java, Python, Swift
MCP sunucusu
Yok
Entegrasyonlar
S3

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .