UNPKG

@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

45 lines (40 loc) 1.36 kB
# Copyright 2020-2024 Lowdefy, Inc # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - id: default type: S3UploadButton properties: s3PostPolicyRequestId: s3PostPolicyRequestId - id: properties.accept type: S3UploadButton properties: accept: '.png,.jpg' s3PostPolicyRequestId: s3PostPolicyRequestId - id: properties.button type: S3UploadButton properties: button: type: primary s3PostPolicyRequestId: s3PostPolicyRequestId - id: properties.disabled type: S3UploadButton properties: disabled: true s3PostPolicyRequestId: s3PostPolicyRequestId - id: properties.showUploadList type: S3UploadButton properties: s3PostPolicyRequestId: s3PostPolicyRequestId showUploadList: true - id: properties.singleFile type: S3UploadButton properties: s3PostPolicyRequestId: s3PostPolicyRequestId singleFile: true