Based on the discussion previously(and on bugzilla), it would be more appropriate to have one extension only instead of adding guess type after the old one like *.jpeg.jpg.

Maybe you could having an extension regExp to:
  - match the original extension.
  - replace the extension with guessedType(if original extension exist).