@radzor/file-upload
Server-side file upload to S3-compatible storage, Cloudflare R2, or local disk. Includes MIME validation, size limits, pre-signed URL generation, and AWS v4 signing.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| provider* | 's3' | 'local' | 'r2' | — | Storage backend to use. |
| bucket | string | — | S3/R2 bucket name. Required for s3 and r2 providers. |
| region | string | us-east-1 | AWS region for S3. |
| accessKeyId | string | — | AWS/R2 access key ID. Required for s3 and r2 providers.AWS_ACCESS_KEY_ID |
| secretAccessKey | string | — | AWS/R2 secret access key. Required for s3 and r2 providers.AWS_SECRET_ACCESS_KEY |
| endpoint | string |