The Bring Your Own Blob (BYOB) architecture offloads the storage and processing of files from Salesforce servers to Amazon S3 servers. By using a client-side LWC approach, files are uploaded directly from the browser to Amazon S3.
How It Works
The upload process includes three primary stages:
Initialize Upload: Retrieve Amazon S3 upload parameters and signed URLs from Salesforce.
File Upload Process: Transfer the file content directly from the browser to Amazon S3.
Complete Upload: Notify Salesforce to create a ContentDocument record that links to the S3 file.
If a user cancels the upload or an error occurs during the process, the LWC should call the abort file upload API to clean up any partially uploaded data in S3.