Event-Handlers
Below you will find a list of all available event-handlers, along with a brief explanation of the event that triggers each one.
These are the conditions you can use to trigger the execution of your own SyncJS scripts within the context of a Syncplify Server! client session.
| Constant | Description |
|---|---|
OnNewConnection | Triggered immediately when a new incoming connection arrives (before accepting it) |
BeforeSendSoftwareID | Triggered right before the server sends its "ID" to the client (only for protocols that support server identification) |
OnProtectorStrike | Triggered whenever a worker process sends a "strike" because a client has done something wrong |
OnBlocklistHit | Triggered when a client that's already in blocklist tries to connect anyway |
OnBlocklistAdd | Triggered when a client's IP address is added to the blocklist |
OnAuthRequest | Triggered when a user requests to initiate the authentication phase |
OnAuthRequestAllowed | Triggered if the server decided to allow the user to attempt authentication |
OnAuthRequestDenied | Triggered if the server decided to deny the user's authentication request |
OnAuthPassword | Triggered when a user attempts password authentication |
OnAuthPKI | Triggered when a user attempts PKI authentication (SSH-2 only) |
OnAuthInteractiveSetQuestions | Triggered before a user attempts keyboard-interactive authentication (to set the questions) |
OnAuthInteractive | Triggered when a user attempts keyboard-interactive authentication (common in SSH-2) |
OnAuthFail | Triggered when a user fails an authentication attempt |
OnAuthSuccess | Triggered when a user has successfully authenticated |
BeforeOpenSFTP | Triggered when an SSH-2 client requests to open the SFTP subsystem |
BeforeOpenShell | Triggered when an SSH-2 client requests to open a Shell |
BeforeOpenCmd | Triggered when an SSH-2 client requests to open a command pipeline |
BeforeOpenClientFwd | Triggered when an SSH-2 client requests to open a client forwarding tunnel |
BeforeOpenServerFwd | Triggered when an SSH-2 client requests to open a server forwarding tunnel |
BeforeMakeDir | Triggered before a directory is created |
BeforeListDir | Triggered before the list of a directory is retrieved from the VFS |
BeforeSendDirListToClient | Triggered after the list of a directory is retrieved from the VFS but before such list is sent to the client |
BeforeDeleteDir | Triggered before a directory is deleted |
BeforeRenameDir | Triggered before a directory is renamed |
BeforeDeleteFile | Triggered before a file is deleted |
BeforeRenameFile | Triggered before a file is renamed |
BeforeModifyFile | Triggered before an existing file is modified (e.g., data is appended to it) |
BeforeFileUpload | Triggered before an upload begins |
BeforeFileDownload | Triggered before a download begins |
AfterMakeDir | Triggered right after a directory is created |
AfterListDir | Triggered right after the list of a directory is sent to the client |
AfterDeleteDir | Triggered right after a directory is deleted |
AfterRenameDir | Triggered right after a directory is renamed |
AfterDeleteFile | Triggered right after a file is deleted |
AfterRenameFile | Triggered right after a file is renamed |
AfterModifyFile | Triggered right after an existing file has been modified |
AfterFileUpload | Triggered right after a new file has been uploaded to the server |
AfterFileDownload | Triggered right after a file has been downloaded |
OnUploadFail | Triggered if an upload fails (only if the failure event is detectable) |
OnDownloadFail | Triggered if a download fails (only if the failure event is detectable) |
BeforeFileCombineRequest | Triggered before 2 or more files are combined within the scope of a VFS |
AfterFileCombineRequest | Triggered after 2 or more files are combined within the scope of a VFS |
BeforeAttrChange | Triggered before a file's attributes are changed |
AfterAttrChange | Triggered after a file's attributes are changed |
BeforeTimeChange | Triggered before a file's timestamps are changed |
AfterTimeChange | Triggered after a file's timestamps are changed |
OnCheckFileExist | Triggered whenever a client checks if a certain file exists on the server |
OnFileSizeRequest | Triggered when a client retrieves the size of a file (e.g., SIZE command in FTP protocols) |
OnFileHashRequest | Triggered when a client requests the hash of a file |
OnAvailDiskRequest | Triggered when a client requests the available space in the home VFS (not all protocols support this) |
OnCustomSITECommand | Triggered when an FTP client sends a SITE command (specific to FTP only) |
BeforeSymlink | Triggered before a symlink is created |
AfterSymlink | Triggered after a symlink is created |
OnQuotaExceeded | Triggered when a user exceeds any of the quota limits (soft/hard) |
OnConnectionClose | Triggered when a client disconnects |
BeforeShrCreate | Triggered before a shared object is created |
AfterShrCreate | Triggered after a shared object is created |
BeforeShrAuthRequest | Triggered before a shared object is accessed |
OnShrAuthRequestAllowed | Triggered if the server decided to allow the user to attempt authentication |
OnShrAuthSuccess | Triggered when a user has successfully authenticated |
BeforeShrFileUpload | Triggered before a file is uploaded to a shared object |
AfterShrFileUpload | Triggered after a file is uploaded to a shared object |
BeforeShrFileDownload | Triggered before a file is downloaded from a shared object |
BeforeShrZipDownload | Triggered before a zip file is downloaded from a shared object |
AfterShrFileDownload | Triggered after a file is downloaded from a shared object |
AfterShrZipDownload | Triggered after a zip file is downloaded from a shared object |
