@lowdefy/plugin-aws
Version:
To securely upload files to S3, the `S3UploadButton` or `S3UploadPhoto` blocks can be used. S3 file downloads can be done by getting a presigned URL using a `AwsS3PresignedGetObject` request and opening the URL in a new tab which will result in the browse
86 lines (85 loc) • 2.53 kB
JSON
{
"type": "object",
"properties": {
"type": "object",
"required": ["s3GetPolicyRequestId"],
"properties": {
"fileList": {
"type": "array",
"description": "List of files to be downloaded. If files were uploaded using an S3Upload block, the fileList value can just be mapped to this field.",
"items": {
"type": "object",
"required": ["key"],
"properties": {
"key": {
"type": "string",
"description": "S3 file key."
},
"lastModified": {
"type": "string",
"description": "File last modified date."
},
"name": {
"type": "string",
"description": "File name."
},
"size": {
"type": "number",
"description": "File size in bytes."
},
"type": {
"type": "string",
"description": "File MIME type."
}
}
}
},
"s3GetPolicyRequestId": {
"type": "string",
"description": "Id of a request of type s3GetPolicyRequestId that defines to which S3 bucket and what file should be downloaded.",
"docs": {
"displayType": "manual",
"block": {
"id": "block_properties_s3GetPolicyRequestId",
"layout": { "_global": "settings_input_layout" },
"type": "Label",
"required": true,
"properties": {
"title": "s3GetPolicyRequestId",
"span": 8,
"align": "right"
},
"blocks": [
{
"id": "block_properties_s3GetPolicyRequestId_text",
"type": "Markdown",
"style": {
"color": "#8c8c8c"
},
"properties": {
"content": "Id of a request of type AwsS3PresignedGetPolicy that defines to which S3 bucket and what file should be downloaded."
}
}
]
}
}
},
"style": {
"type": "object",
"description": "Css style object to applied to download component.",
"docs": {
"displayType": "yaml"
}
}
}
},
"events": {
"type": "object",
"properties": {
"onChange": {
"type": "array",
"description": "Triggered when the upload state is changing."
}
}
}
}