TUS changeset (#22901)

* changeset

* updated changeset

* updated docs

* more prettier

* dictionary
This commit is contained in:
Brainslug
2024-07-02 17:23:20 +02:00
committed by GitHub
parent 266e043c0e
commit 3cc349982f
3 changed files with 16 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
---
"@directus/api": minor
"@directus/app": minor
"@directus/env": minor
"@directus/storage": minor
"@directus/storage-driver-local": minor
"@directus/storage-driver-s3": minor
"@directus/system-data": minor
"@directus/types": minor
---
Implemented support for chunked uploads using the TUS protocol

View File

@@ -420,6 +420,7 @@ TrustRadius
truthy
TTL
TTY
TUS
TypeDoc
UI
UID

View File

@@ -687,14 +687,14 @@ purposes, collection of additional metadata must be configured:
| `FILES_MAX_UPLOAD_SIZE` | Maximum file upload size allowed. For example `10mb`, `1gb`, `10kb` | -- |
| `FILES_MIME_TYPE_ALLOW_LIST` | Allow list of mime types that are allowed to be uploaded. Supports `glob` syntax | `*/*` |
### Resumable Uploads
### Chunked Uploads
Large files can be uploaded in chunks to improve reliability and efficiency, especially in scenarios with network
instability or limited bandwidth.
instability or limited bandwidth. This is implemented using the [TUS protocol](https://tus.io/).
| Variable | Description | Default Value |
| ----------------------- | ----------------------------------------------------------------- | ------------- |
| `TUS_ENABLED` | Whether or not to enable the resumable uploads | `false` |
| `TUS_ENABLED` | Whether or not to enable the chunked uploads | `false` |
| `TUS_CHUNK_SIZE` | The size of each file chunks. For example `10mb`, `1gb`, `10kb` | `10mb` |
| `TUS_UPLOAD_EXPIRATION` | The expiry duration for uncompleted files with no upload activity | `10m` |
| `TUS_CLEANUP_SCHEDULE` | Cron schedule to clean up the expired uncompleted uploads | `0 * * * *` |