Page 1 of 1

SFTP Server Question

Posted: Sat 06 Feb 2016 16:25
by snorkel
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)

Re: SFTP Server Question

Posted: Tue 16 Feb 2016 16:05
by ViktorV
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.

Re: SFTP Server Question

Posted: Thu 25 Feb 2016 19:56
by snorkel
Thanks,
I am looking at this now.
How do I get the filename in the OnCloseFile Event?

Re: SFTP Server Question

Posted: Fri 26 Feb 2016 12:08
by ViktorV
SecureBridge doesn't pass the file name to the OnCloseFile event handler as a parameter.