All Features
Security
UI/UX
System
Content
Business
Marketing
📁
Admin SettingsSystem
File Manager
Secure file uploads with user avatars and media management
Overview
Complete file upload system with validation, MIME type checking, and organized storage. Special handling for user avatars with automatic resizing. Admin file browser for management.
Design Considerations
UX patterns and visual design notes for this feature:
- •Drag-and-drop feels modern and expected
- •Upload progress indicators reduce anxiety
- •Preview thumbnails for images
- •Clear file size limits upfront
Key Benefits
What makes this feature stand out:
- ✓Secure upload validation
- ✓User avatar management
- ✓Organized file storage by type
- ✓Admin file browser
Technical Note
FileHelper::upload() handles validation and storage. Avatar uploads via FileHelper::uploadAvatar(). Files stored with unique names, original name preserved in DB.
Helpers
FileHelperModels
FileDatabase Tables
fileConfiguration
Config Relationship Legend
⚙ DB overrides params.php🔗 DB related setting📋 DB stores value only
params.php Configuration
Config path: params['fileUpload']
params['features']['fileUpload'] => trueparams['fileUpload']['maxSize'] => 10485760params['fileUpload']['allowedExtensions'] => ['jpg', 'png', 'pdf']params['fileUpload']['uploadPath'] => '@webroot/uploads'Database Settings (system_setting table)
| Key | Type | Description | Relation |
|---|---|---|---|
max_upload_size_mb | number | Maximum file upload size in MB | ⚙ |
allowed_file_extensions | string | Allowed extensions (comma-separated) | ⚙ |