How do I replace an old document with a new version?

Select the document, click Replace File, and upload the new version.