 | FTPUtilitiesUploadFile Method |
Upload a files via FTP
Namespace: ProFTPNetLibraryAssembly: ClientFTPNetLibrary (in ClientFTPNetLibrary.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static bool UploadFile(
FTPUtilitiesFTPConfiguration ftpConfig,
Stream stream,
string relativePath,
string filename
)
Public Shared Function UploadFile (
ftpConfig As FTPUtilitiesFTPConfiguration,
stream As Stream,
relativePath As String,
filename As String
) As Boolean
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:
BooleanTrue if deleted successfully; false otherwise
See Also