use dest not src for mime type detection