Determined that the API actually returns the file size so we are now using that.