feat: implement file upload and EXIF processing (task 25)

- Configure Multer for photo uploads to local filesystem
- Set up uploads directory and Express static file serving
- Implement EXIF metadata extraction with exifr library
- Add file validation (type: JPEG/PNG/WebP, size: 5MB max)
- Create photo URL generation for local storage paths
- Add upload endpoint POST /api/reports/upload
- Include comprehensive error handling
- Add test scripts and documentation

Requirements satisfied: 1.2, 1.3, 1.4, 1.5
This commit is contained in:
2025-11-16 19:19:35 +00:00
parent 4797b320e1
commit 32102d7aaa
6 changed files with 599 additions and 1 deletions

View File

@@ -206,7 +206,7 @@
- Add spatial queries using MySQL spatial functions for location-based filtering
- _Requirements: 1.1-1.8, 2.1, 2.4_
- [ ] 25. Implement file upload and EXIF processing
- [-] 25. Implement file upload and EXIF processing
- Configure Multer for photo uploads to local filesystem
- Set up uploads directory and configure Express static file serving
- Implement EXIF metadata extraction with exifr