Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fgrreloaded/rigidui/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The File Uploader component provides a comprehensive solution for file uploads across Web and React Native platforms. It includes drag-and-drop support, real-time progress tracking, file validation, image previews, and advanced image cropping capabilities.Installation
React Native Installation
First, ensure you have React Native Reusables properly set up in your project. Follow the complete setup guide at React Native Reusables Installation.
Usage
- Web
- React Native
- Preview
- Code
Features
File Selection
Users can select files through native file pickers on both Web and React Native platforms with seamless integration.
Cross-Platform Support
Available for both Web and React Native with platform-specific optimizations and native document picker support.
File Validation
Automatically validates file types, sizes, and counts with customizable restrictions across platforms.
Upload Progress
Real-time progress indicators show upload status with visual feedback for each file (Web platform).
Image Previews
Automatically generates preview thumbnails for uploaded image files with platform-appropriate display.
Multiple Files
Support for uploading multiple files simultaneously with individual progress tracking and management.
File Management
Easy file removal with automatic cleanup and organized file list display.
Image Cropping
Advanced image cropping with aspect ratio controls and customizable crop areas.
API Reference
FileUploader
The main container component that manages file upload state and validation.Callback function called when files are ready or changed.
Maximum number of files that can be uploaded.
Maximum file size in bytes. Default is 10MB.
Array of accepted file types (e.g.,
['image/*', 'application/pdf']).Additional class names for styling the container.
Child components (FileUploaderDropZone, FileUploaderFileList, etc.).
FileUploaderDropZone
The drag-and-drop zone for file selection.Additional class names for styling the drop zone.
Whether the drop zone is disabled.
FileUploaderFileList
Displays the list of uploaded files with progress indicators.Additional class names for styling the file list.
Whether to show the file list header with count and clear button.
Enable image cropping functionality for uploaded images.
FileUploaderCrop
Provides image cropping functionality for uploaded images.Fixed aspect ratio for cropping (e.g., 16/9, 1, 4/3). If undefined, free cropping is allowed.
Minimum width for the crop area in pixels.
Minimum height for the crop area in pixels.