forcedotcom avatar

Implementing Ui Bundle File Upload

This handles file uploads in Salesforce UI bundles through a programmatic API rather than pre-built components. You get an upload() function that manages progress tracking and ContentVersion creation, but you build the actual UI yourself with custom dropzones, file inputs, and progress bars. The workflow is smart: upload files immediately to get contentBodyIds, optionally link them to existing records right away, or defer the linking until after you create the parent record. Progress callbacks give you pending, uploading, processing, success, and error states with percentage completion. Worth noting it's strictly an API package, so don't expect useFileUpload hooks or ready-made React components despite what the example code might suggest.

skills.sh installs
1.5K
GitHub stars
705
last updated
Jul 14, 2026

Install

$ npx -y skills add forcedotcom/afv-library --skill implementing-ui-bundle-file-upload --agent claude-code

Installs into .claude/skills of the current project.

Files

This handles file uploads in Salesforce UI bundles through a programmatic API rather than pre-built components. You get an upload() function that manages progress tracking and ContentVersion creation, but you build the actual UI yourself with custom dropzones, file inputs, and progress bars. The workflow is smart: upload files immediately to get contentBodyIds, optionally link them to existing records right away, or defer the linking until after you create the parent record. Progress callbacks give you pending, uploading, processing, success, and error states with percentage completion. Worth noting it's strictly an API package, so don't expect useFileUpload hooks or ready-made React components despite what the example code might suggest.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/afv-library
Category
Frontend Development
First seen
May 16, 2026

More from forcedotcom/afv-library

All 58
1mindrally avatarreact-querymindrally/skillsGuidelines for using React Query for data fetching, caching, and server state synchronization in React applications1.5Kskills.sh installs
2lobehub avatarreactlobehub/lobe-chatreact1.4Kskills.sh installs
3likaia avatarui-ux-pro-maxlikaia/nginxpulseui ux pro max1.3Kskills.sh installs
4callstackincubator avatarreact-devtoolscallstackincubator/agent-devicereact devtools1.3Kskills.sh installs
5sickn33 avatartailwind-design-systemsickn33/antigravity-awesome-skillstailwind design system1.3Kskills.sh installs
6ruvnet avataragent-spec-mobile-react-nativeruvnet/rufloAgent skill for spec-mobile-react-native - invoke with $agent-spec-mobile-react-native1.3Kskills.sh installs