phoenix-uploads
Installation
SKILL.md
Phoenix File Uploads
RULES — Follow these with no exceptions
- Use manual uploads (NOT auto_upload: true) for form submission patterns
- Always add upload directory to static_paths() — files won't be accessible without this
- Handle upload errors — display error_to_string/1 output in templates
- Create upload directories with File.mkdir_p! before saving files
- Generate unique filenames — prevent collisions and path traversal attacks
- Validate file types server-side — never trust client MIME types
- Restart server after changing static_paths() — changes don't apply until restart