React File Uploader

In React, you can integrate Uploadcare File Uploader in two ways:

  • with Web Components (@uploadcare/file-uploader)
  • with the React adapter (@uploadcare/react-uploader)

When to choose each option

Web Components package

Choose this when you want direct access to uploader elements, events, and low-level API.

React adapter package

Choose this when you prefer React component APIs and React-centric state/event bindings.

Examples

Web Components

Play with CodeSandbox   Open in StackBlitz

React adapter

Play with CodeSandbox   Open in StackBlitz

React-specific notes

  • If you use Web Components directly, subscribe/unsubscribe to uploader events in React effects.
  • Keep uploader state updates predictable by committing only successful entries to app state.
  • If your app uses strict CSP or secure uploads, review Security settings.
HTTPS · uploadcare.com
← Home