On Delphi 5, I double-clicked the OnVersionSelect event in the Object Inspector to create the event handler, and added code. The routine is never called, no matter what I set Version to.
Displaying the Version and ServerVersion after the negotiation confirms that my server supports V3 (which I know to be true); if I set Version to anything greater than 3, ServerVersion ends up as 3, and if I set version to anything less than 3, ServerVersion happily lowers to match. OnVersionSelect is never called, though.
OnVersionSelect not used?
Re: OnVersionSelect not used?
Thank you for your inquiry.
The OnVersionSelect event is raised only when an SFTP server uses the 'versions' extension on connection establishment. This extension is not supported by many of SFTP servers, and SFTP client cannot affect this extension use.
The OnVersionSelect event is raised only when an SFTP server uses the 'versions' extension on connection establishment. This extension is not supported by many of SFTP servers, and SFTP client cannot affect this extension use.