downloader: Add support for size checking of downloaded files