You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(storage): add AWS S3 and MinIO storage provider support
Add native support for AWS S3 and S3-compatible storage services (MinIO,
DigitalOcean Spaces, Backblaze B2) as an alternative to existing local
and Cloudflare R2 storage options.
New features:
- Generic 's3' storage provider using AWS SDK v3
- Support for custom endpoints (MinIO/self-hosted S3-compatible services)
- Multipart upload support for large files (videos up to 1GB)
- Date-based directory organization (YYYY/MM/DD/filename)
- Automatic file deletion from storage when media is deleted
Bug fixes included:
- Enable actual file deletion from Cloudflare R2 (was no-op)
- Add file deletion from local storage
- Fix URL trailing slash handling for all providers
- Add null checks and error handling for edge cases
- Add fallback for unrecognized MIME types
New environment variables:
- S3_ENDPOINT (optional, for MinIO)
- S3_ACCESS_KEY
- S3_SECRET_KEY
- S3_BUCKET
- S3_REGION
- S3_BUCKET_URL (optional)
Fully backward compatible - existing local and cloudflare providers unchanged.
0 commit comments