file-upload-handling - Securely validate and store uploaded files
Validates uploaded files by extension, MIME type, size, and content, then stores them with UUID names and supports deletion and optional ClamAV scanning.
Tags
Updated: 2026-10-04Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Validate file extensions
- Check MIME types
- Enforce size limits
- Detect malicious content
- Generate UUID filenames
- Store files securely
- Scan files with ClamAV
- Delete uploaded files
Inputs
- Uploaded file
- File type category
- Storage subfolder
- Upload directory configuration
- Administrator credentials
Outputs
- Saved file
- File metadata
- Validation error message
- Scan result message
- File deletion status
Requirements
- Python runtime
- FastAPI
- aiofiles
- python-magic
- Writable upload directory
- Administrator access
- Optional ClamAV installation
