The Star Export application now supports downloading media content (images and videos) along with metadata from supported platforms. This guide explains how the media export functionality works and how to use it.
- Media Types: Thumbnails (high and medium quality)
- File Formats: JPG
- Max File Size: 2048MB
- Content: Video thumbnails from your channel
- Media Types: Images, Videos, Stories
- File Formats: JPG, PNG, MP4, MOV
- Max File Size: 1024MB
- Content: All your posts, stories, and carousel media
- Media Types: Photos, Videos from posts
- File Formats: JPG, PNG, GIF, MP4, MOV
- Max File Size: 1024MB
- Content: Photos and videos from your posts and uploads
When you start an export with "Include media files" checked:
- The system fetches metadata first (as usual)
- Extracts media URLs from the platform responses
- Downloads media files concurrently (3 files at a time)
- Organizes files by platform and media type
- Creates a ZIP archive containing both metadata and media
Downloaded files are organized as follows:
export-{jobId}/
├── {platform}-export-{jobId}.json # Metadata
└── media/
├── images/
│ └── {platform}/
│ ├── {date}_{id}.{ext}
│ └── {id}.{ext}.meta.json
└── videos/
└── {platform}/
├── {date}_{id}.{ext}
└── {id}.{ext}.meta.json
Each media file includes a corresponding .meta.json file with:
- Original ID from the platform
- Platform name
- Download timestamp
- Original caption/description
- File dimensions (when available)
- Select a platform that supports media export
- Choose your export format
- Check "Include media files (images and videos)"
- Review the information panel about file types and sizes
- Click "Start Export"
const exportRequest = {
platform: 'instagram',
format: 'json',
includeMedia: true
};
const response = await apiService.startExport(exportRequest);- Concurrent Downloads: Uses semaphore pattern for controlled concurrency
- Retry Logic: Automatic retry with exponential backoff
- Progress Tracking: Real-time progress callbacks
- File Safety: Sanitizes filenames and checks existing files
Each platform service now includes:
extractMediaItems()method to parse media URLs- Support for different media types (images/videos)
- Metadata extraction for each media item
- Progress stages now include media download step (90-95%)
- Archive creation for exports with media
- Enhanced error handling for media download failures
- Checkbox to enable media export
- Information panel with supported formats and limits
- Dynamic progress indicators during media download
- Updated
ExportRequestinterface withincludeMediaflag - Enhanced progress tracking types
- Platform configuration with media support flags
- Concurrency: 3 simultaneous downloads to avoid overwhelming servers
- Retry Logic: Maximum 3 retries per file with exponential backoff
- File Size Limits: Platform-specific limits to prevent excessive downloads
- Files are temporarily stored in
exports/{jobId}/directory - Archives are created for downloads with media
- Cleanup should be implemented for old exports
- Respects platform API rate limits
- Uses appropriate User-Agent headers
- Implements delay between requests when needed
- Failed downloads are tracked and reported
- Export continues even if some media files fail
- Failed file list is included in progress reporting
- Graceful handling of disk space issues
- Automatic directory creation
- File permission checks
- Filename sanitization to prevent directory traversal
- File type validation based on platform specifications
- Maximum file size enforcement
- User authentication required for all downloads
- Job ownership verification
- Secure file serving with proper headers
- Selective Media Export: Choose specific media types or date ranges
- Quality Options: Different quality levels for images/videos
- Cloud Storage: Direct upload to user's cloud storage
- Incremental Updates: Only download new media since last export
- Bandwidth Limiting: User-configurable download speed limits
- Streaming Archives: Create ZIP files on-the-fly during download
- CDN Integration: Cache frequently accessed media
- Parallel Processing: Multi-threaded download processing
- Compression: Optional image compression for smaller exports
- Slow Downloads: Check network connection and platform rate limits
- Missing Media: Some platforms may restrict certain file access
- Large File Sizes: Consider metadata-only export for large accounts
- Archive Errors: Ensure sufficient disk space for export creation
- Check server logs for detailed download progress
- Monitor export job status for failure details
- Review platform-specific API responses for media availability