wodSSHServer ActiveX Control - SftpUploadFile Event
    
 

Description

Fires when SFTP user wants to upload file.


Syntax

Private Sub object_SftpUploadFile(User, RelativePath, ResolvedPath, Action)



The SftpUploadFile Event syntax has these parts:

Part Description
object A wodSSHD object.
User A SSHUser object. Reference to user who wants to upload file.
RelativePath A String value. Relative path of the file, as seen by the user.
ResolvedPath A String value. Full path to the file on local system.
Action A SSHActions enumeration, as described in settings. You should set to Allow to allow this action, or to Deny if you don't want to allow it.

Settings

The settings for Action are:

Constant Value Description
 Deny 0 Deny execution of the action.
 Allow 1 Allow to execute action.

Remarks

This event is fired when user wants to upload a file. You may deny such action, for example, if user is not uploading to 'upload' folder. You should do so by setting Action = Deny.

 

This event can also fire if ServiceType was stSCP - when client performs SCP upload.