Admin File Management
Complete guide to file upload, image management, and asset organization in the Antler admin interface
The Antler admin interface includes a comprehensive file management system that handles image uploads, asset organization, and media integration. This guide covers all aspects of managing files through the admin interface.
File Manager Overview
The File Manager is accessible at /admin/files and provides a complete solution for managing all your site’s media assets. It supports multiple file types, drag-and-drop uploads, and seamless integration with content editors.
Key Features
- Visual file browser with grid and list views
- Drag-and-drop uploads for easy file management
- Multiple file selection and bulk operations
- Directory organization with predefined folders
- Image preview and thumbnail generation
- Direct integration with content editors
- File type detection and appropriate icons
Accessing File Manager
Navigation Methods
- Sidebar Navigation: Click “Files” in the admin sidebar
- Dashboard Link: Use “Manage Files” quick action on dashboard
- Content Editor: Integrated file picker in forms
- Direct URL: Navigate to
/admin/files
Interface Layout
- Header Section: File count, directory selector, view toggle, upload button
- Upload Area: Drag-and-drop zone with visual feedback
- File Grid/List: Visual representation of all files
- Selection Controls: Bulk selection and action buttons
File Upload Methods
Drag-and-Drop Upload
The most intuitive way to upload files:
- Drag files from your computer to the upload area
- Visual feedback shows when files are ready to drop
- Multiple files can be uploaded simultaneously
- Progress indication during upload process
- Automatic refresh shows new files immediately
Supported Drop Zones
- Main upload area: Large dashed border zone
- File list area: Drop anywhere in the file manager
- Content editors: Direct integration in forms
Button Upload
Traditional file selection method:
- Click “Upload Files” button in header
- File dialog opens for selection
- Multiple selection supported with Ctrl/Cmd+click
- File filtering based on accepted types
- Immediate upload after selection
Integrated Upload
Upload directly from content editors:
- Form fields with file upload buttons
- Image fields with preview and upload
- Direct insertion into markdown editor
- Automatic path generation and linking
File Organization
Directory Structure
Files are organized into logical directories:
Images Directory
- Path:
public/images/ - Purpose: Blog images, project screenshots, general media
- File Types: JPG, PNG, GIF, SVG, WebP
- Optimization: Automatic compression and resizing
Documents Directory
- Path:
public/documents/ - Purpose: PDFs, documents, downloadable files
- File Types: PDF, DOC, DOCX, TXT
- Usage: Resume attachments, documentation files
Assets Directory
- Path:
public/assets/ - Purpose: General assets, icons, miscellaneous files
- File Types: All supported types
- Usage: Site assets, custom files
Directory Management
- Automatic creation: Directories created as needed
- Path consistency: Predictable URL structure
- Organization: Logical grouping by content type
- Navigation: Easy switching between directories
File Types and Support
Image Files
Comprehensive image format support:
Supported Formats
- JPEG/JPG: Standard photography format
- PNG: Transparency support, graphics
- GIF: Animated images, simple graphics
- SVG: Vector graphics, scalable icons
- WebP: Modern format with better compression
Image Features
- Thumbnail generation: Automatic preview creation
- Preview display: Visual representation in file manager
- Optimization: Compression and size optimization
- Responsive handling: Multiple size variants
- Alt text support: Accessibility metadata
Document Files
Support for common document formats:
Supported Formats
- PDF: Portable document format
- DOC/DOCX: Microsoft Word documents
- TXT: Plain text files
- RTF: Rich text format
Document Features
- File type icons: Visual identification
- Size display: File size information
- Download links: Direct access to files
- Integration: Link from content easily
File Validation
- Type checking: Ensure supported formats
- Size limits: Prevent oversized uploads
- Security scanning: Basic malware protection
- Name validation: Safe filename handling
File Management Features
View Modes
Grid View
Visual representation with thumbnails:
- Image previews: Full thumbnail display
- File icons: Type-specific visual indicators
- Compact layout: Multiple files per row
- Quick actions: Copy URL, view, select
- Responsive design: Adapts to screen size
List View
Detailed information in table format:
- File details: Name, size, date modified
- Sortable columns: Organize by different criteria
- Bulk selection: Checkbox for each file
- Action buttons: Inline operations
- Efficient browsing: More files visible at once
File Selection
Individual Selection
- Click checkbox: Select single files
- Visual feedback: Highlighted selection
- Action availability: Context-sensitive operations
- Deselection: Click again to unselect
Bulk Selection
- Select All: Choose all visible files
- Deselect All: Clear all selections
- Range selection: Shift+click for ranges
- Filter selection: Select by criteria
File Operations
Copy URL
- One-click copying: URL to clipboard
- Relative paths: Site-relative URLs
- Absolute paths: Full URLs when needed
- Markdown format: Ready for content insertion
File Viewing
- Image preview: Full-size image display
- Document download: Direct file access
- New tab opening: Preserve admin context
- Quick preview: Hover or click preview
File Deletion
- Individual deletion: Remove single files
- Bulk deletion: Remove multiple files
- Confirmation dialogs: Prevent accidental deletion
- Permanent removal: Files deleted from filesystem
Integration with Content Editors
Form Field Integration
File upload is seamlessly integrated into content forms:
Image Fields
- Upload button: Direct file selection
- Preview display: Show selected image
- Path auto-fill: Automatic URL insertion
- Validation: Ensure image formats only
File Reference Fields
- File picker: Browse existing files
- Upload option: Add new files inline
- URL generation: Automatic path creation
- Type filtering: Show relevant files only
Markdown Editor Integration
Direct file insertion into markdown content:
Image Insertion
- Drag-and-drop: Drop images directly into editor
- Upload and insert: Automatic markdown generation
- Alt text prompts: Accessibility consideration
- Size optimization: Automatic image processing
Link Creation
- File references: Link to documents and assets
- Download links: Direct file access
- Descriptive text: User-friendly link text
- Path management: Consistent URL structure
File Optimization
Image Processing
Automatic optimization for web delivery:
Compression
- Quality optimization: Balance size and quality
- Format conversion: Best format selection
- Progressive loading: Better user experience
- Lossless options: Preserve quality when needed
Sizing
- Responsive variants: Multiple size options
- Thumbnail generation: Preview images
- Maximum dimensions: Prevent oversized images
- Aspect ratio preservation: Maintain proportions
Performance Optimization
- Lazy loading: Load images as needed
- Caching headers: Browser cache optimization
- CDN preparation: Ready for content delivery networks
- Bandwidth consideration: Optimized file sizes
File Security
Upload Security
- File type validation: Prevent malicious uploads
- Size limits: Prevent resource exhaustion
- Name sanitization: Safe filename handling
- Virus scanning: Basic malware protection
Access Control
- Development only: Admin interface restricted
- Local filesystem: No external dependencies
- Permission checking: File system access validation
- Secure paths: Prevent directory traversal
Best Practices
File Organization
- Use descriptive names: Clear, searchable filenames
- Organize by purpose: Group related files together
- Consistent naming: Follow naming conventions
- Regular cleanup: Remove unused files
- Size optimization: Compress before upload
Image Management
- Optimize before upload: Reduce file sizes
- Use appropriate formats: JPEG for photos, PNG for graphics
- Include alt text: Accessibility consideration
- Consistent dimensions: Maintain visual consistency
- Backup originals: Keep high-resolution versions
Performance Considerations
- Monitor file sizes: Keep uploads reasonable
- Use compression: Balance quality and size
- Clean unused files: Regular maintenance
- Optimize for web: Web-friendly formats
- Consider mobile: Mobile-friendly sizes
Troubleshooting
Upload Issues
Files Not Uploading
- Check file size: Ensure within limits
- Verify file type: Confirm supported format
- Network connection: Stable internet required
- Browser compatibility: Modern browser needed
- JavaScript enabled: Required for functionality
Upload Failures
- Disk space: Ensure adequate storage
- Permissions: File system write access
- Server limits: Check upload size limits
- Network timeout: Large files may timeout
- File corruption: Try re-uploading
Display Issues
Images Not Showing
- Path verification: Check file URLs
- File existence: Confirm files uploaded
- Permission issues: File access problems
- Cache problems: Clear browser cache
- Format support: Browser compatibility
Thumbnails Missing
- Processing delay: Allow time for generation
- File format: Ensure supported image type
- Size limits: Very large images may fail
- Memory issues: Server resource constraints
- Refresh browser: Force thumbnail regeneration
Performance Issues
Slow Loading
- File sizes: Large files slow loading
- Network speed: Connection limitations
- Server performance: Resource constraints
- Browser cache: Clear cached data
- Too many files: Pagination needed
Memory Problems
- Large uploads: Break into smaller batches
- Browser limits: Restart browser
- Server memory: Check server resources
- File optimization: Compress before upload
- Batch operations: Process files in groups
Advanced Features
Batch Operations
- Multiple selection: Select many files at once
- Bulk deletion: Remove multiple files
- Batch renaming: Consistent naming schemes
- Mass organization: Move files between directories
- Export operations: Download multiple files
File Metadata
- Creation dates: When files were uploaded
- Modification times: Last change timestamps
- File sizes: Storage space usage
- Usage tracking: Where files are referenced
- Version history: Track file changes
Integration APIs
- Upload endpoints: Programmatic file upload
- File listing: API access to file information
- Metadata retrieval: File details via API
- Deletion endpoints: Programmatic file removal
- Search functionality: Find files by criteria
Next Steps
- Learn about API Reference for technical details
- Review Content Management for editor integration
- Check Admin Interface Overview for navigation
- Understand Deployment file handling differences