SFTP Server Question

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

SFTP Server Question

Post by snorkel » Sat 06 Feb 2016 16:25

Hi,
Does the SFTP server component have a event that fires after a file has been successfully uploaded?
I want to do some processing on certain file name after they have been fully uploaded(unix to DOS CRLF conversion and other things like that)

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: SFTP Server Question

Post by ViktorV » Tue 16 Feb 2016 16:05

TScSFTPServer doesn't generate a separate event after the file is successfully loaded. You can implement file loading validation by yourself. For this, you can use the OnOpenFile event handler. In it, you need to detect whether the file is open for writing. After the client writes all the data, the OnCloseFile event is called. You can handle this event to detect file loading success.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Re: SFTP Server Question

Post by snorkel » Thu 25 Feb 2016 19:56

Thanks,
I am looking at this now.
How do I get the filename in the OnCloseFile Event?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: SFTP Server Question

Post by ViktorV » Fri 26 Feb 2016 12:08

SecureBridge doesn't pass the file name to the OnCloseFile event handler as a parameter.

Post Reply