use-upload
- Purpose: A zero-dependency file upload hook for React and Svelte, providing full control over the upload process while simplifying implementation.
- Key Features:
- Supports upload progress tracking via XHR.
- Works with direct uploads to services like Google Cloud or AWS.
- Framework-agnostic design with implementations for Svelte and React.
- 100% test coverage across both frameworks.
- Target Audience: Developers needing a lightweight, customizable file upload solution with progress tracking for React or Svelte applications.
- Flexibility:
- Handles FormData, custom headers, and XHR customization (e.g.,
withCredentials
). - Supports signed upload workflows (e.g., AWS pre-signed URLs).
- Handles FormData, custom headers, and XHR customization (e.g.,
- Svelte Support: Includes a dedicated Svelte implementation with reactive state management.
Example Use Cases:
- Basic file uploads with progress indicators.
- Complex workflows like signed URL uploads to cloud storage.
- Customizable requests with headers or credentials.
Links:
file-uploadreactreact-hookxhrhookssvelte
Featured Stories
No featured articles here. Navigate to an article, then pick the Feature on menu button