Skip to main content

Installation

useApexxCloud Hook

A custom hook for granular control over the upload process.

Basic Usage

Multipart Upload Example

Hook Return Value

Upload Options

Multipart Upload Options

Includes all Upload Options plus:

Backend Implementation

See the JavaScript SDK documentation for details on implementing the backend signed URL endpoint.

File Uploader Component

The SDK provides a pre-built FileUploader component that you can use out of the box:

Component Props

Custom Implementation

If you want to customize the uploader or build your own, here’s the complete implementation of our FileUploader component that you can use as a reference:
This implementation includes:
  • Drag and drop support
  • Upload progress tracking
  • Error handling
  • File type and size validation
  • Upload cancellation
  • Responsive design
  • Accessibility features

Requirements

  • React 16.8+ (Hooks support)
  • @apexxcloud/sdk-js as a peer dependency

Transformations

Image Transformations

Video Transformations

Document Transformations

For detailed information about available transformation options, see the JavaScript SDK documentation.