Dropdowns are populated from existing templates. Use "Add new" to insert a category that doesn't exist yet.
Automatically detects file type by MIME/extension and picks the correct API.