## Summary
Allow attaching images and documents to filament records.
## Upstream Issues
- https://github.com/Donkie/Spoolman/issues/740 - Image attachments
- https://github.com/Donkie/Spoolman/issues/395 - SDS/Technical Data Sheets
## Problem
The color hex field alone does not capture:
- Visual appearance of specialty filaments (translucent, glitter, marble, silk)
- Safety Data Sheets (SDS) from manufacturers
- Technical Data Sheets with print settings
- Sample print photos
## Proposed Solution
### Database
- Add FilamentAttachment table (supports images and documents)
- Fields: filament_id, filename, file_type, url/path, description
### Backend
- File upload endpoint (store in data directory)
- Serve files via static route
- Thumbnail generation for images
- Support PDF, images, text files
### Frontend
- File upload in filament create/edit form
- Show image thumbnails in filament list
- Document list with download links
- Full image gallery in detail page
### File Types
- Images: jpg, png, gif, webp
- Documents: pdf, txt (SDS, TDS)
- Max file size limit (configurable)
## Considerations
- Storage: local filesystem vs external URL
- Security: validate file types, scan uploads
- Could extend to Spool records too
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Allow attaching images and documents to filament records.
Upstream Issues
Problem
The color hex field alone does not capture:
Proposed Solution
Database
Backend
Frontend
File Types
Considerations