Salesforce LWC for AWS S3 File Uploads

Vaibhav Kumar

Salesforce Lightning Web Component for AWS S3 File Upload
🧩 Project Overview: Developed a custom Lightning Web Component (LWC) integrated with Amazon S3 to enable direct client-side file uploads from Salesforce UI. The component supports multi-section uploads (e.g., Cover Photo, Image 1–10) and dynamically updates the related record fields with the public S3 file URLs via Apex.
šŸ› ļø Key Features: šŸ“ø Multi-file Upload Support with Dynamic Sections (A–K)
ā˜ļø Direct Integration with Amazon S3 using AWS SDK via Static Resource
🧠 Metadata-driven Field Mapping (e.g., Cover_Photo__c, Image_1__c, etc.)
šŸ” Real-time UI Feedback using Spinners & File Previews
āœ… Automatic Record Update via Apex Controller (updateRecordWithUrl)
šŸ” Record Metadata Fetched via Lightning Data Service and @wire (getRecord)
šŸ”— Tech Stack: Salesforce Lightning Web Components
Apex
Amazon S3 & AWS SDK
Static Resources
Lightning Data Service (getRecord)
🧠 Highlights: This LWC was designed for use on any record page (e.g., Account, Property__c) and dynamically resolves the SObject type and record ID to correctly update related image fields. The entire file upload and metadata update process occurs seamlessly from the client-side, improving UX and minimizing Apex processing.
Like this project

Posted Jun 18, 2025

Developed a Salesforce LWC for AWS S3 file uploads with dynamic updates.

Salesforce Experience Cloud Consultation and Development
Salesforce Experience Cloud Consultation and Development
Salesforce Sales/Service Cloud Consultation and Development
Salesforce Sales/Service Cloud Consultation and Development
API Integration of Salesforce with External Systems
API Integration of Salesforce with External Systems

Join 50k+ companies and 1M+ independents

Contra Logo

Ā© 2025 Contra.Work Inc