📁
System

File Manager

Admin Settings

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
FileHelper
Models
File
Database Tables
file

Configuration

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)
KeyTypeDescriptionRelation
max_upload_size_mbnumberMaximum file upload size in MB
allowed_file_extensionsstringAllowed extensions (comma-separated)