Understanding attachments
Attachments in Halo:- Include images, videos, audio files, documents, and other file types
- Are stored according to your configured storage policy (local or cloud storage)
- Can be organized using groups and tags
- Have metadata like size, media type, and upload date
- Can be linked to posts, pages, or used standalone
Attachments are independent resources in Halo. Deleting a post or page doesn’t automatically delete its attachments. This prevents accidental data loss when content is removed.
Accessing the media library
To access your media library:View your files
The media library displays all uploaded files in a grid or list view, showing thumbnails, names, and metadata.
Uploading files
Uploading to the media library
Select files
Choose one or more files from your computer to upload. You can select multiple files at once.
Configure upload settings
Before uploading, you can optionally:
- Select a group to organize the files
- Add tags for easy retrieval
- Choose a storage policy (if you have multiple configured)
Upload files
Click Upload or Confirm to begin uploading. A progress indicator shows the upload status.
Upload limits (file size and count) are determined by your server configuration and storage policy. Contact your system administrator if you need to upload larger files.
Uploading within the editor
You can also upload files while editing posts or pages:Upload or select
Choose to:
- Upload a new file from your computer
- Select an existing file from the media library
Organizing attachments
Using groups
Groups help you organize attachments into categories:Using tags
Tags provide flexible labeling for attachments:Managing attachment details
You can view and edit metadata for each attachment:View information
The detail panel shows:
- Display Name: Friendly name for the file
- File Type: MIME type (e.g., image/jpeg, application/pdf)
- File Size: Size in bytes, KB, or MB
- Dimensions: For images and videos
- Upload Date: When the file was uploaded
- Uploader: User who uploaded the file
- URL: Direct link to the file
- Groups and Tags: Organization metadata
Using attachments in content
Inserting images
To add images to posts or pages:Configure display
Set options like:
- Alt text (for accessibility)
- Caption
- Alignment (left, center, right)
- Size (thumbnail, medium, large, full)
Linking to files
To create download links for documents or other files:Setting cover images
To set a featured or cover image for posts and pages:Image thumbnails
Halo automatically generates thumbnails for images:- Thumbnails are created in different sizes for various uses (list views, card layouts, etc.)
- Thumbnail generation is handled by your configured storage policy
- You can view available thumbnails in the attachment details
Thumbnail sizes and generation settings are configured in your storage policy settings. Contact your administrator if you need custom thumbnail sizes.
Storage policies
Attachments are stored according to configured storage policies:Local storage
- Files are stored on your server’s filesystem
- Suitable for small to medium sites
- Easier to manage and backup
Cloud storage
- Files are stored in cloud services (S3, OSS, etc.)
- Suitable for large sites with many media files
- Offers better scalability and CDN integration
Configure policies
Set up storage policies with details like:
- Storage type (local, S3, etc.)
- Authentication credentials
- Upload paths
- Access permissions
Changing storage policies doesn’t migrate existing files. Files remain in their original storage location unless you manually migrate them.
Deleting attachments
To remove files from the media library:Finding where attachments are used
Before deleting an attachment, check where it’s used:View usage
Look for a Used In or References section that lists:
- Posts using this attachment
- Pages using this attachment
- Theme locations (if used in site design)
Best practices for media management
- Optimize before uploading: Compress images and videos before uploading to save space and improve performance
- Use descriptive names: Name files clearly so they’re easy to find later
- Add alt text: Always add alt text to images for accessibility and SEO
- Organize consistently: Develop a system for groups and tags and use it consistently
- Clean up regularly: Periodically review and remove unused attachments
- Use appropriate formats:
- JPEG for photos
- PNG for graphics with transparency
- WebP for modern browsers (better compression)
- SVG for icons and logos
- Set reasonable dimensions: Don’t upload images larger than you’ll actually use
- Back up media files: Regularly backup your media library separately from your database
- Monitor storage usage: Keep track of how much storage you’re using to avoid running out of space