Appearance
Media Library Module
The Media Library module allows you to upload, organize, and manage all media files (images, videos, documents) used throughout your website. This comprehensive guide covers all media management features.
Table of Contents
- Overview
- Accessing Media Library
- Uploading Files
- File Organization
- Managing Files
- Image Editing
- File Search and Filtering
- Bulk Operations
- Media Usage Tracking
- File Types and Limits
Overview
Features
- ✅ Upload multiple file types
- ✅ Folder-based organization
- ✅ Image editing capabilities
- ✅ File search and filtering
- ✅ Bulk file operations
- ✅ Media usage tracking
- ✅ File metadata management
- ✅ Responsive image handling
- ✅ CDN integration support
Admin Routes
- Media Library:
/admin/media - File Manager:
/admin/file-manager
Supported File Types
- Images: JPG, PNG, GIF, SVG, WebP
- Videos: MP4, WebM, MOV, AVI
- Documents: PDF, DOC, DOCX, XLS, XLSX
- Audio: MP3, WAV, OGG
- Archives: ZIP, RAR
Accessing Media Library
From Admin Panel
- Log in to admin panel
- Navigate to Core → Media Library
- Or go directly to:
/admin/media
Alternative Access
- File Manager:
/admin/file-manager - From Editors: Media picker in content editors
Permissions Required
- View Media:
view mediapermission - Upload Media:
upload mediapermission - Delete Media:
delete mediapermission - Manage Media:
manage mediapermission
Uploading Files
Single File Upload
Method 1: Drag and Drop
- Open Media Library
- Drag file from computer
- Drop into upload area
- File uploads automatically
- Appears in library
Method 2: Click to Upload
- Click Upload Files button
- Select file from computer
- Click Open
- File uploads
- Appears in library
Multiple File Upload
- Click Upload Files
- Hold Ctrl (Windows) or Cmd (Mac)
- Select multiple files
- Click Open
- All files upload simultaneously
Note: Upload progress shown for each file
Upload to Folder
- Navigate to desired folder
- Click Upload Files
- Select files
- Files upload to current folder
Upload Settings
File Naming
Options:
- Keep Original: Use original filename
- Sanitize: Clean filename (remove special chars)
- Rename: Custom naming pattern
Image Processing
Automatic:
- Generate thumbnails
- Create multiple sizes
- Optimize file size
- Extract metadata
File Organization
Folders
Creating Folders
- Click New Folder button
- Enter folder name
- Select parent folder (optional)
- Click Create
- Folder appears in library
Folder Structure
Hierarchical Organization:
Media Library/
├── Images/
│ ├── Products/
│ ├── Blog/
│ └── Pages/
├── Videos/
├── Documents/
└── Archives/Managing Folders
- Rename: Right-click → Rename
- Delete: Right-click → Delete (must be empty)
- Move: Drag to new location
Moving Files
Drag and Drop
- Select file(s)
- Drag to destination folder
- Drop in folder
- File(s) moved
Move Dialog
- Select file(s)
- Click Move button
- Choose destination folder
- Click Move
- File(s) relocated
File Organization Tips
Use Descriptive Names:
- Name files clearly
- Include dates if relevant
- Use consistent naming
Create Logical Folders:
- Organize by content type
- Group related files
- Use subfolders for detail
Regular Cleanup:
- Remove unused files
- Archive old files
- Maintain organization
Managing Files
File Information
View File Details
- Click on file
- View details panel:
- Filename: Original name
- File Size: File size
- Dimensions: Image dimensions (if image)
- Upload Date: When uploaded
- Uploaded By: User who uploaded
- File Type: MIME type
- URL: File URL
Edit File Information
- Select file
- Click Edit or Info
- Modify:
- Title: Display title
- Alt Text: Alternative text (images)
- Caption: File caption
- Description: File description
- Click Save
File Actions
View File
- Click file thumbnail
- Opens in lightbox/viewer
- See full-size version
- View file details
Download File
- Select file
- Click Download
- File downloads to computer
Delete File
- Select file
- Click Delete
- Confirm deletion
- Warning: Check usage first
- File removed
Copy File URL
- Select file
- Click Copy URL
- URL copied to clipboard
- Paste where needed
Image Editing
Basic Editing
Crop Image
- Select image
- Click Edit → Crop
- Adjust crop area
- Click Apply
- Save changes
Resize Image
- Select image
- Click Edit → Resize
- Enter dimensions:
- Width: New width
- Height: New height
- Maintain Aspect Ratio: Keep proportions
- Click Apply
- Save changes
Rotate Image
- Select image
- Click Edit → Rotate
- Choose rotation:
- 90° Clockwise
- 90° Counter-clockwise
- 180°
- Click Apply
- Save changes
Advanced Editing
Image Filters
- Brightness: Adjust brightness
- Contrast: Adjust contrast
- Saturation: Adjust color saturation
- Sharpen: Enhance sharpness
Image Effects
- Grayscale: Convert to black and white
- Sepia: Apply sepia tone
- Blur: Apply blur effect
Image Optimization
Automatic Optimization
- Compress images on upload
- Generate WebP versions
- Create responsive sizes
- Optimize file size
Manual Optimization
- Select image
- Click Optimize
- Choose quality level
- Click Optimize
- Optimized version saved
File Search and Filtering
Search Files
Text Search
- Enter search term in search box
- Search by:
- Filename
- Title
- Alt text
- Description
- Results update in real-time
Advanced Search
Filters:
- File Type: Images, Videos, Documents
- Date Range: Upload date
- Size Range: File size
- Folder: Specific folder
- Uploaded By: User filter
Filtering
By File Type
- Click Filter → File Type
- Select type:
- Images
- Videos
- Documents
- Audio
- All Files
- View filtered results
By Date
- Click Filter → Date
- Select:
- Today
- This Week
- This Month
- Custom Range
- View filtered files
By Folder
- Navigate to folder
- View files in folder only
- Or use folder filter
Bulk Operations
Selecting Files
Select Multiple
- Checkbox: Click checkbox on each file
- Select All: Checkbox in header
- Select Page: Select all on current page
- Keyboard: Ctrl/Cmd + Click
Bulk Actions
Bulk Delete
- Select multiple files
- Click Bulk Actions → Delete
- Confirm deletion
- Warning: Check usage first
- All selected files deleted
Bulk Move
- Select files
- Click Bulk Actions → Move
- Choose destination folder
- Click Move
- All files moved
Bulk Edit
- Select files
- Click Bulk Actions → Edit
- Modify common fields:
- Alt text
- Title
- Description
- Click Save
- Changes applied to all
Media Usage Tracking
Where Files Are Used
View Usage
- Select file
- Click Usage or Where Used
- See list of:
- Pages using file
- Posts using file
- Products using file
- Other content using file
Usage Information
- Content Type: What's using the file
- Content Title: Name of content
- Usage Date: When added
- Link: Direct link to content
Benefits
- Safe Deletion: Know what will break
- Content Audit: Find all uses
- Replacement: Find files to replace
- Cleanup: Identify unused files
File Types and Limits
Supported File Types
Images
Formats:
- JPG/JPEG: Photos, complex images
- PNG: Graphics with transparency
- GIF: Animated images, simple graphics
- SVG: Vector graphics
- WebP: Modern optimized format
Recommendations:
- Use JPG for photos
- Use PNG for graphics with transparency
- Use WebP for modern browsers
- Optimize all images
Videos
Formats:
- MP4: Most compatible
- WebM: Modern browsers
- MOV: QuickTime format
- AVI: Legacy format
Recommendations:
- Use MP4 for maximum compatibility
- Compress videos before upload
- Consider hosting on YouTube/Vimeo
Documents
Formats:
- PDF: Documents, forms
- DOC/DOCX: Word documents
- XLS/XLSX: Excel spreadsheets
- PPT/PPTX: PowerPoint presentations
File Size Limits
Default Limits
- Images: 10MB per file
- Videos: 100MB per file
- Documents: 50MB per file
- Total Upload: Varies by server
Increasing Limits
PHP Settings:
ini
upload_max_filesize = 64M
post_max_size = 64M
max_file_uploads = 20Server Configuration:
- Contact hosting provider
- Increase server limits
- Configure for large files
Storage Configuration
Storage Locations
Local Storage
- Files stored on server
- Path:
storage/app/public - Accessible via:
public/storage - Default storage method
Cloud Storage
Supported:
- Amazon S3
- DigitalOcean Spaces
- Google Cloud Storage
- Azure Blob Storage
Configuration:
- Go to Settings → Storage
- Select storage driver
- Enter credentials
- Test connection
- Save settings
Storage Best Practices
Regular Backups:
- Backup media files
- Store off-server
- Test restores
Organization:
- Use folders effectively
- Name files clearly
- Regular cleanup
Optimization:
- Compress images
- Use appropriate formats
- Remove unused files
Tips and Best Practices
File Management
Organize Early:
- Create folder structure first
- Use consistent naming
- Group related files
Optimize Files:
- Compress images before upload
- Use appropriate formats
- Remove unnecessary files
Use Alt Text:
- Describe images accurately
- Include keywords
- Improve SEO and accessibility
Performance
Image Optimization:
- Use WebP when possible
- Compress images
- Use appropriate sizes
Lazy Loading:
- Enable lazy loading
- Improve page speed
- Better user experience
CDN Usage:
- Use CDN for media
- Faster load times
- Reduced server load
Troubleshooting
Upload Fails
Solutions:
- Check file size limits
- Verify file type is allowed
- Check server permissions
- Increase PHP limits
- Check disk space
Files Not Displaying
Solutions:
- Check file permissions
- Verify storage link exists
- Clear cache
- Check file URLs
- Verify file exists
Slow Uploads
Solutions:
- Compress files before upload
- Check internet connection
- Increase PHP timeout
- Use chunked uploads
- Check server resources
Related Documentation
Last Updated: [Date will be updated during final review]