Apparently all this time we used AddFilter which uses extensions and not mime-types. Switching to AddFilterByType, deprecated or not, it still works.