File Service
Python/FlaskSupport
A lightweight Python-based service for MIME type detection and file information analysis. It provides accurate file type identification from binary content using the python-magic library.
Key Features
- MIME Detection — Accurate MIME type identification from binary content
- File Analysis — Extract file metadata and properties
- Simple API — Single-endpoint REST service
- Lightweight — Minimal resource footprint
API Endpoints
POST
/analyzeAnalyze uploaded file and return MIME type information
Technology
- Flask — Lightweight Python web framework
- python-magic — libmagic-based MIME type detection
- Single Process — Simple single-threaded deployment
ℹInfo
The File Service is used internally by the Media Service for file validation during upload. It is not exposed through the Gateway.