code: def get_attachment_types(self):
          
          bika_setup_catalog = api.get_tool("bika_setup_catalog")
          attachment_types = bika_setup_catalog(portal_type='AttachmentType',
                                                is_active=True,
                                                sort_on="sortable_title",
                                                sort_order="ascending")
          return attachment_types
docs: Returns a list of available attachment types