allow to update the size of an object

this is necessary if the object is being fetched asynchronously so we don't know
its complete size until it's fully downloaded