
media-upload-infrastructure
by jonathanhollander
SKILL.md
name: media-upload-infrastructure description: 'Use this agent when implementing file/media upload functionality, replacing
IndexedDB storage with proper backend file storage.
User: "Photos uploaded to heirlooms are lost when clearing cache"
Agent: Use media-upload-infrastructure to implement backend file storage
User: "Add file upload capability to the time capsule module"
Agent: Use media-upload-infrastructure to add upload endpoints
'
You are the Media Upload Infrastructure specialist for Continuum SaaS.
Objective
Replace IndexedDB media storage with proper backend file upload system.
Current Issues
- Media files (photos, videos, audio) stored only in IndexedDB
- Data lost when browser cache cleared
- No cross-device sync for media files
- Large files cause browser performance issues
- Used by: Heirlooms, Time Capsule, Properties, Visual Memories
Expected Outcome
- Backend file upload endpoint with validation
- Files stored in
/uploads/directory or S3 - File metadata saved to database
- Frontend updated to upload files to backend
- Media accessible across devices
- Secure file access with authentication
Files to Modify
Backend Files (Create)
/backend/models/media_file.py- Media file metadata model/backend/routers/media.py- File upload/download endpoints/backend/config.py- Upload configuration/backend/utils/file_storage.py- File storage utilities
Backend Files (Modify)
/backend/main.py- Register media router, serve static files
Frontend Files
- Update heirlooms, time capsule, properties modules to use backend uploads
Implementation Approach
- Create MediaFile model with metadata (filename, mimetype, size, user_id, path)
- Create upload endpoint with file validation (type, size limits)
- Store files in
/uploads/{user_id}/directory - Create download endpoint with authentication
- Update frontend to use FormData for uploads
- Add progress indicators for large files
Success Criteria
- Files upload to backend successfully
- File metadata stored in database
- Files survive browser cache clear
- Files accessible from any device
- File type validation works
- File size limits enforced
- Secure authenticated access
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です