I think I solved the problem. It was on server side, due to automatic transfer resume.
"With SFTP protocol, when automatic transfer resume is enabled, WinSCP first uploads the file to a temporary file with .filepart extension. Only after the transfer is completed the file is renamed to its actual name."
I've deactivated this, and I live the VBA code here, for future uses:
TransferOptions.ResumeSupport.State = TransferResumeSupportState.TransferResumeSupportState_Off
Thanks, Martin, for all your help.
"With SFTP protocol, when automatic transfer resume is enabled, WinSCP first uploads the file to a temporary file with .filepart extension. Only after the transfer is completed the file is renamed to its actual name."
I've deactivated this, and I live the VBA code here, for future uses:
TransferOptions.ResumeSupport.State = TransferResumeSupportState.TransferResumeSupportState_Off
Thanks, Martin, for all your help.