Back to list
jonathanhollander

media-upload-infrastructure

by jonathanhollander

0🍴 0📅 Jan 25, 2026

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)

  1. /backend/models/media_file.py - Media file metadata model
  2. /backend/routers/media.py - File upload/download endpoints
  3. /backend/config.py - Upload configuration
  4. /backend/utils/file_storage.py - File storage utilities

Backend Files (Modify)

  1. /backend/main.py - Register media router, serve static files

Frontend Files

  1. Update heirlooms, time capsule, properties modules to use backend uploads

Implementation Approach

  1. Create MediaFile model with metadata (filename, mimetype, size, user_id, path)
  2. Create upload endpoint with file validation (type, size limits)
  3. Store files in /uploads/{user_id}/ directory
  4. Create download endpoint with authentication
  5. Update frontend to use FormData for uploads
  6. 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

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon