Where is the "Replace file" button? On the file's page, above the preview. It is not in the menus of a listing. More: Versions and history, Replacing a file