Uploads a local file to the FTP server remote directory.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public virtual void Upload(
	FileInfo localFile,
	bool append
)
Visual Basic
Public Overridable Sub Upload ( _
	localFile As FileInfo, _
	append As Boolean _
)
Visual C++
public:
virtual void Upload(
	FileInfo^ localFile, 
	bool append
)

Parameters

localFile
Type: System.IO..::..FileInfo
The local file (or directory) to upload.
append
Type: System..::..Boolean
true to append to the remote file on the FTP server, false otherwise.

Remarks

If the local file is a directory then the directory and all the contents are uploaded relative to the remote directory.

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an I/O or FTP error occurs.

See Also