# Attachments > File uploads for comments. ## Overview Comments support file attachments for both images and documents. Images are displayed inline within the comment body, while documents appear as downloadable links. ## Configuration ```php // config/comments.php 'attachments' => [ 'enabled' => true, 'disk' => 'public', 'max_size' => 10240, // KB (10 MB) 'allowed_types' => [ 'image/jpeg', 'image/png', 'image/gif', 'image/webp', 'application/pdf', 'text/plain', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', ], ], ```
| Key | Default | Description |
|---|---|---|
enabled
|
true
|
Show/hide the attachment upload UI |
disk
|
'public'
|
Laravel filesystem disk for storage |
max_size
|
10240
|
Maximum file size in kilobytes |
allowed_types
|
images, pdf, text, word | Array of allowed MIME types |