Skip to main content

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

ParameterRequiredTypeDefaultDescription
objFTPTrueexpressionobjFTPRefers to the FTP connection object returned by the "connect to FTP server" command
sRemotedirTruestring""Existing remote directory in FTP server
sFilepathTruepath'''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