fix saving size of receiving file to use progress handler.