Upload: refactor file versioning