Constraining to supported file types.