localgreenchain/pages
Claude d74128d3cd
Add Agent 3: File Upload & Storage System
Implements cloud-based file storage for plant photos, documents, and certificates:

Storage Layer:
- Multi-provider support (AWS S3, Cloudflare R2, MinIO, local filesystem)
- S3-compatible provider with presigned URL generation
- Local storage provider for development with signed URL verification
- Configurable via environment variables

Image Processing:
- Automatic thumbnail generation (150x150, 300x300, 600x600, 1200x1200)
- WebP conversion for optimized file sizes
- EXIF data extraction for image metadata
- Image optimization with Sharp

API Endpoints:
- POST /api/upload/image - Upload images with automatic processing
- POST /api/upload/document - Upload documents (PDF, DOC, DOCX)
- POST /api/upload/presigned - Get presigned URLs for direct uploads
- GET/DELETE /api/upload/[fileId] - File management

UI Components:
- ImageUploader - Drag & drop image upload with preview
- PhotoGallery - Grid gallery with lightbox view
- DocumentUploader - Document upload with file type icons
- ProgressBar - Animated upload progress indicator

Database:
- FileStore service with in-memory storage (Prisma schema ready for Agent 2)
- File metadata tracking with soft delete support
- Category-based file organization
2025-11-23 03:51:31 +00:00
..
api Add Agent 3: File Upload & Storage System 2025-11-23 03:51:31 +00:00
blog/page Initial commit 2023-08-09 21:34:23 +00:00
plants Add environmental tracking UI components and integrations 2025-11-16 16:58:53 +00:00
vertical-farm Add vertical farming UI components and pages 2025-11-22 18:35:57 +00:00
[[...slug]].tsx Initial commit 2023-08-09 21:34:23 +00:00
_app.tsx Initial commit 2023-08-09 21:34:23 +00:00
_document.tsx Initial commit 2023-08-09 21:34:23 +00:00
index.tsx Implement LocalGreenChain: Plant Cloning Blockchain System 2025-11-16 05:11:55 +00:00
transparency.tsx Add comprehensive transparency system for LocalGreenChain 2025-11-23 03:29:56 +00:00