File Upload
Overview
The File Upload module is designed to facilitate secure and efficient file uploading in your application. It provides a comprehensive set of features to manage file selection, upload, progress tracking, and storage. Additionally, it includes assets, components/pages used in file upload processes, common interfaces, and supports multiple storage providers such as Firebase Storage, Supabase Storage, and custom REST APIs.
Key Features of File Upload Module
- File Selection: Allows users to choose files from their device.
- File Type Validation: Ensures only allowed file types are uploaded.
- Size Limit: Enforces maximum file size limits.
Module Composition
- Common Interfaces: Defines common interfaces for file upload operations.
- Multiple Providers: Supports Firebase Storage, Supabase Storage, and custom REST APIs for file storage.
Storage Providers
- Firebase Storage: Provides file storage using Firebase.
- Supabase Storage: Provides file storage using Supabase.
- REST API: Provides file storage using a custom REST API (S3 bucket or custom storage buckets supported).
File Upload Functions
- uploadMedia: Initiates the upload process for a single file.
- deleteMedia: Removes a file from storage.