Thank you very much for the answers.
First of all I'm upgrading from an old version to another old version (15.16.0011 to 16.02.0010) because unfortunately the choice of the version is not up to me.
I was able to upgrade my switch this morning by issuing an SFTP transfer from the switch. The command I used was : "copy sftp flash ......secondary"
So then I just had to reload my switch and make a "copy flash flash primary" and everything was fine.
Unfortunately I didn't resolve my first issue which I encountered while trying to upload the secondary file through SFTP using WinSCP.
- YES I renamed my file exactly the same than it is on the switch's flash : "secondary" without the ".swi" of course
- YES I disabled the resume functionality of WinSCP so that it directly overwrites the file in the switch and it doesn't create a ".part" or something like that.
I believe that the issue seems to be a security rule on the switch configuration because I can navigate through the switch's folder with WinSCP but I cannot copy/paste (overwrite) the primary or the secondary file.
Indeed what is curious is that I can perfectly navigate in the switch's folder but I’m not allowed to overwrite my secondary or primary file...
EDIT : It works.
After reloading the switch and upgrading it I can copy/paste the primary or secondary file to the switch. I remember that I did not reboot the switch after issuing the command "IP SSH Filetransfer" so perhaps a reload is necessary for this command to be taken in consideration.
Anyway thank you for the answer, I will mark the post as resolved.