Upload-File
Command Description
Upload a local single file to the remote directory in an FTP server
Command Prototype
uploadStatus = FTP.UploadFile(objFTP,sRemotedir,sFilepath)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objFTP | True | expression | objFTP | Refers to the FTP connection object returned by the "connect to FTP server" command |
sRemotedir | True | string | "" | Existing remote directory in FTP server |
sFilepath | True | path | '''C:\Users''' | Specify the path of the file to be uploaded locally |
return
uploadStatus,The variable used to save the output of the command.
Demo