Its not about the code. Its about the selection of Hide known extensions or not.
Follow this image[
^]
To access this go to organise of your explorer -> Folder & Search Option -> View tab
unchecked the check box and you can also view the extension when you will download.
And it will be different computer wise.