Click or drag to resize
FTPUtilitiesUploadFile Method
Upload a files via FTP

Namespace: ProFTPNetLibrary
Assembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static bool UploadFile(
	FTPUtilitiesFTPConfiguration ftpConfig,
	Stream stream,
	string relativePath,
	string filename
)

Parameters

ftpConfig
Type: ProFTPNetLibraryFTPUtilitiesFTPConfiguration
FTP configuration structure
stream
Type: System.IOStream
Stream of the file to upload
relativePath
Type: SystemString
Directory relative path (es: "mydirectory"), do not add \ or /
filename
Type: SystemString
Name of the upload file

Return Value

Type: Boolean
True if deleted successfully; false otherwise
See Also