axios-upload is a lightweight npm package (v1.0.10) that extends axios to simplify uploading form data with file streams in Node.js. It automatically handles FormData creation and stream piping, including a default 100MB upload limit (configurable via maxContentLength). This package is designed for Node.js environments only and has a very small footprint. The release cadence is irregular; no major updates or breaking changes have been reported since initial release. It differentiates itself by providing a minimal wrapper around axios for file uploads without requiring manual FormData construction or multipart headers.
npm install axios-uploadNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to upload a file stream with default 100MB limit using axios-upload in an async function.
Use import axiosUpload from 'axios-upload' instead of require.
Use only in Node.js projects. For browser uploads, use axios directly.
Set maxContentLength in options to a higher value (in bytes) for large files.
Consider using axios directly with FormData for better maintainability.
Change to import axiosUpload from 'axios-upload' in an ESM context, or use dynamic import.
Use axios directly with FormData for browser uploads.
Set maxContentLength: 200 * 1024 * 1024 (for 200MB) in the options passed to axios-upload.