From ce8da04a8b5d248e992b85837b70b86c3eb99ce7 Mon Sep 17 00:00:00 2001 From: Georgi Boyvalenkov Date: Wed, 10 Aug 2022 19:34:00 +0300 Subject: [PATCH] Document the mode property for restricting file upload access (#79) [#76] Document the mode property for restricting file upload access - added flag description Signed-off-by: Georgi Boyvalenkov --- web/site/content/docs/references/file-upload-config.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/site/content/docs/references/file-upload-config.md b/web/site/content/docs/references/file-upload-config.md index 8c60bf85..601849be 100644 --- a/web/site/content/docs/references/file-upload-config.md +++ b/web/site/content/docs/references/file-upload-config.md @@ -16,6 +16,7 @@ To control all aspects of the file upload behavior. | type | string | file | Type of the files that are uploaded by this feature | | context | string | edge | Context of the files that are uploaded by this feature, unique in the scope of the `type` | | files | string | | Glob pattern to select the files for upload | +| mode | string | strict | Restriction on files that can be dynamically selected for an upload, the supported modes are: strict, lax and scoped | | singleUpload | bool | false | Forbid triggering of new uploads when there is an upload in progress | | checksum | bool | false | Send MD5 checksum for uploaded files to ensure data integrity | | stopTimeout | string | 30s | Time to wait for running uploads to finish as a sequence of decimal numbers, each with optional fraction and a unit suffix, such as: 300ms, 1.5h, 10m30s, etc., time units are: ns, us (or µs), ms, s, m, h | @@ -63,6 +64,7 @@ The following template illustrates all possible properties with their default va "type": "file", "context": "edge", "files": "", + "mode": "strict", "singleUpload": false, "checksum": false, "stopTimeout": "30s",