Maybe this should be initialised at the same place where `totalSize` is initialised. In case people upload multiple files using `part()`, `totalSize` would grow, but `totalWritten` would be reset all the time.