TheOpenPresenter
  • Introduction
    • Welcome
    • Motivation & Challenges
    • System Architecture
    • Terminologies
    • Server Communication
    • Project Topology
  • Development
    • Quickstart
    • Static files
    • Media Storage
  • Plugins
    • Introduction
    • Official Plugins
      • Google Slides
      • Lyrics Presenter
        • Lyrics compatibility
      • Video Player
      • Audio Recorder
    • Developing a Plugin
      • Plugin API
        • Yjs
          • Awareness
          • Scene
          • Renderer
        • Backend
          • Yjs Handler
          • Loading Frontend
          • Security
        • Frontend
          • Remote
          • Renderer
        • Media
          • Server Plugin API
          • Frontend
            • Tus
            • Form Data
        • TRPC
        • Database
      • Audio
      • Viewer State
      • Notifying Errors
      • Caveats
        • Sharing dependencies
        • Cross-over between plugins
      • Performance
  • API Reference
    • Plugin Context
  • Guide
    • Playing Audio
    • Listen to scene changes
  • Scratch Pad
    • Ambition
    • Background music
  • Environment Variables
  • External
    • Page 1
Powered by GitBook
On this page
  • Endpoint
  • Headers
  • Metadata
  1. Plugins
  2. Developing a Plugin
  3. Plugin API
  4. Media
  5. Frontend

Tus

PreviousFrontendNextForm Data

Last updated 5 months ago

Tus-js-client

Uppy

Endpoint

The tus endpoint can be obtained through the pluginApi:

pluginApi.media.tusUploadUrl

Headers

We do not require any additional headers other than the one specified at . However, all Tus headers should be passed as normal.

Metadata

At the moment of writing, we only read the metadata for the file's original name and to infer the file extension based on that.

We recommend to pass the same metadata as it would appear when you use Uppy since that is what we use. Here's an example of one:

{
  relativePath: 'null',
  name: 'title.png',
  type: 'image/png',
  filetype: 'image/png',
  filename: 'title.png'
}
Headers