Comment out the type condition to allow retrieving all attachments regardless of their type in the backend controller.