PowerTCP FTP for .NET | Upload a File Code Example

See all PowerTCP FTP for .NET Code Examples

Upload a File Example

This example demonstrates using the FTP control to upload a file using the FTP PUT command.


Ftp ftp1 = new Ftp();
//Connect to the FTP Server and authenticate
ftp1.Authenticate(myUsername, myPassword);
//Retrieve a file.
ftp1.Put("testfile.txt", "testfile.txt", Synchronize.Off);
//Close the connection.


To download a trial please visit the PowerTCP FTP for .NET product page.