🏗️Uppy File Upload Widget Integration with AWS S3
This page is in development
This page provides instructions on how to integrate the Uppy file upload widget with AWS S3 for seamless file uploads. It also includes helper functions for path extraction and named actions.
1. Uppy Library
Include the Uppy library and its CSS in your DOM Header Insertions.
2. Path Extraction Function
Include the the BF.getPaths
in your DOM Header Insertion. This function is used to extract JSON paths from a data object based on a filter. This can be helpful for dynamically generating paths to specific data elements.
3. Named Action Promise Function
Include the BF.namedActionPromise
function in your DOM Header Insertion. It facilitates the execution of named actions with a promise-based approach. This function generates a unique ID for each action and resolves the promise once the action is complete.
4. AWS S3 Setup
Ensure you have an AWS S3 bucket and the necessary credentials for accessing it. You can reference here.
Check this example for Uppy used in various cases.
Action Scripts
getSignedURL
handles the process of obtaining a signed URL from AWS S3 to upload files securely.
resolver
resolves the signed URLs obtained for file uploads.
runSignedURL
triggers the process to get the signed URL for file uploads.
uploadHandler
handles the post-upload process.
onFormLoad
In this action, it initializes necessary variables and Uppy instances for different upload scenarios, including drag-drop area, status bar, dashboard trigger, and file input.
Last updated