younifyd
Menu

Create Tus Upload

Create TUS Upload

POST/files/tus

Use it in a workflow

  1. Add a step and choose the Directus connector.
  2. Pick the Create Tus Upload action (under Files).
  3. Fill in the fields below, then reference the result from later steps as {{createTusUpload.response.data}}.

Request

Headers

Upload-Lengthintegerrequired

Total size of the file in bytes. Required unless the server supports deferred length.

Upload-Metadatastring

Comma-separated key-value pairs of file metadata, base64-encoded. Supported keys include `filename`, `filetype`, and any `directus_files` field name (e.g. `title`, `folder`). To replace an existing file, include `id` with the existing file UUID.

Tus-Resumablestringrequired

TUS protocol version. Must be `1.0.0`.

One of1.0.0

Response

Returns 201 with a any. Read it in later steps with {{createTusUpload.response.data.<field>}}.

Need more? See the Directus guide for connection setup and behaviour shared by every action.

Was this page helpful?
Create Tus Upload — Directus — Documentation