S3 file uploader
Last updated
Was this helpful?
Last updated
Was this helpful?
Upload to S3 is a button to upload files to Amazon S3. The uploader allows you to set ACL, and specify file type restrictions and MIME types.
Triggers allow you to launch certain actions based on different events.
On Upload success
Calls for an action when a file is successfully uploaded
If you are planning to use the S3 file uploader in UI Bakery, you first need to connect your Amazon S3 as a data source and set up CORS policies for your bucket.
Add the S3 file uploader component to the working area.
Select the necessary S3 data source from the dropdown, specify the bucket, and set up other required settings.
Next, click on the component and select the necessary file to upload it.
Once it's uploaded, you will notice that the lastUploadedFileUrl
is an S3 URL, and you can refer to it with the {{ui.s3FileUploader.lastUploadedFileUrl}}
variable.
Also, If you need to call any action upon the file upload, you can use the On Upload Success trigger of the component.