Proper file downloader, based on MIME types.