User blog comment:TOR/MediaWiki Upgrade/@comment-1627453-20120612170103/@comment-6345313-20120612170600

I think it would read the mime type and append the appropriate file extension to the filename.