upload.ospp
File upload
Define an upload entry point to upload/download from a storage endpoint.
This allows to define boundaries to limit the files that are authorized or not into the storage. Available settings are:
max size limits for an individual file
allowed file types (image/png, application/pdf, …)
type |
object |
||
properties |
|||
|
List of authorized content type. Must at least contain one element. |
||
type |
array |
||
items |
type |
string |
|
|
Number of upload requests that can be performed at the same time (default 1).
Default value is [1] |
||
type |
integer |
||
minimum |
1 |
||
default |
1 |
||
|
Name of the playbook that generated this file. If present, the file is managed by the Composer and may be overwritten on regeneration. Used for selective clean. Do not edit or set manually. |
||
type |
string |
||
|
Max size allowed for each individual file (default 5 MB) Default value is [5000000] |
||
type |
integer |
||
minimum |
1 |
||
default |
5000000 |
||
|
The id of the module who need this configuration. Supported module [web, reports] |
||
type |
array |
||
items |
type |
string |
|
|
The configuration of the storage endpoint to which upload/download the files to/from (host and port). Default value is [{“host”:”osp-storage”,”port”:8443}] |
||
default |
host |
osp-storage |
|
port |
8443 |
||
|
The id of the template to use for this file |
||
type |
string |
||
|
The variables and their values to be replaced from the template |
||
type |
object |
||
additionalProperties |
|||
|
Timeout in milliseconds before the upload is deemed as failed (default 10000 MS) Default value is [10000] |
||
type |
integer |
||
minimum |
1 |
||
default |
10000 |
||
|
The variables files to use to replace the variables. The first file of the list will take precedence over the following one. Template variables take precedence over the contents of the files. |
||
type |
array |
||
items |
type |
string |
|
additionalProperties |
False |
||
UploadStorageConfiguration
type |
object |
|
properties |
||
|
Host. Default value is [“osp-storage”] |
|
type |
string |
|
default |
osp-storage |
|
|
Port. Default value is [8443] |
|
type |
integer |
|
default |
8443 |
|
additionalProperties |
False |
|