Skip to content
forcedotcom avatar

Experience Ui Bundle File Upload Generate

Programmatic upload API for UI bundles with progress tracking and optional Salesforce ContentVersion linking.

CCM score
73 of 100
skills.sh installs
5.2K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers three upload patterns: basic upload, immediate record linking, and deferred linking after record creation
  • Exposes upload() with onProgress callbacks across pending, uploading, processing, success, and error states, plus AbortController cancellation
  • Provides createContentVersion and getCurrentUserId for linking files to a new record or the current user's library
  • Designed for custom UI builds in React UI bundle apps, since no prebuilt components or hooks are exported

Install

$ npx -y skills add forcedotcom/sf-skills --skill experience-ui-bundle-file-upload-generate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

File Upload API (workflow)

When the user wants file upload functionality in a React UI bundle, follow this workflow. This feature provides APIs only — you must build the UI components yourself using the provided APIs.

CRITICAL: This is an API-only package

The package exports programmatic APIs, not React components or hooks. You will:

  • Use the upload() function to handle file uploads with progress tracking
  • Build your own custom UI (file input, dropzone, progress bars, etc.)
  • Track upload progress through the onProgress callback

Do NOT:

  • Expect pre-built components like <FileUpload /> — they are not exported
  • Try to import React hooks like useFileUpload — they are not exported
  • Look for dropzone components — they are not exported

The source code contains reference components for demonstration, but they are not available as imports. Use them as examples to build your own UI.

1. Install the package

npm install @salesforce/ui-bundle-template-feature-react-file-upload

Dependencies are automatically installed:

Details

Repository
github.com/forcedotcom/sf-skills
Category
Frontend & UI Code
First seen
Jul 14, 2026

Questions

What does the experience-ui-bundle-file-upload-generate skill do?

It adds file upload functionality to a React UI bundle app, with progress tracking and Salesforce ContentVersion integration. The package exports programmatic upload APIs only, so you build your own file input and progress UI around the upload() function.

How do I install the experience-ui-bundle-file-upload-generate skill?

Run npx -y skills add forcedotcom/sf-skills --skill experience-ui-bundle-file-upload-generate -y in your project. The skill then guides the agent to use the upload() API for files in a uiBundles project instead of building uploads from scratch with FormData or XHR.

Does this skill provide pre-built upload components like a dropzone?

No, the package exports no React components or hooks such as FileUpload or useFileUpload. You build the file input, dropzone and progress bars yourself, using the upload() API and its onProgress callback.

Which Frontend and UI Code skills are the other top skills in this category?

Other top skills in the Frontend and UI Code category include vercel-react-best-practices, web-design-guidelines and design-taste-frontend. This skill differs by focusing on Salesforce file upload with ContentVersion record linking in UI bundle apps.

More from forcedotcom/sf-skills

All 78

Similar to Experience Ui Bundle File Upload Generate

More Frontend & UI Code