Object & Media Storage Integration
Helix aggregates evidence attachments (photos, videos, files) uploaded during citizen reports to validate complaints and verify outcomes.
Architectural Design: Unified File Storage
Media upload tasks route through a standard repository layer, supporting local file system storage for zero-dependency local runs, or standard S3/MinIO endpoints for production environments.
graph TD
MediaService[Media Service] --> StorageProvider[StorageProvider Abstraction]
StorageProvider --> LocalStorage[Local FileSystem Storage]
StorageProvider --> S3Storage[S3/MinIO Compatible Provider]
S3Storage --> MinIO[MinIO Container]
S3Storage --> AWSS3[AWS S3 / GCP Cloud Storage]
Storage Modes
1. Local Storage (Default sandbox mode)
- Storage Location: Saves files directly under local workspace subdirectory (e.g.
backend/shared/storage/). - Use Case: Zero-dependency offline hackathon sandboxes.
2. S3-Compatible Storage
- Storage Location: Uploads files to S3/MinIO buckets.
- Use Case: Production scaling and containerized deployments.
Environment Variables
Configure media storage endpoints inside .env: