Skip to content

Commit

Permalink
Document the mode property for restricting file upload access (#79)
Browse files Browse the repository at this point in the history
[#76] Document the mode property for restricting file upload access

- added flag description

Signed-off-by: Georgi Boyvalenkov <[email protected]>
  • Loading branch information
gboyvalenkov-bosch authored Aug 10, 2022
1 parent c2ac2e0 commit ce8da04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/site/content/docs/references/file-upload-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ce8da04

Please sign in to comment.