QS-3233 Get extension for file refactored to use enum keys.