Welcome to the FoxLearn
Today we will learn how to upload files with FTP
First, We will design a simple UI allows you to enter the server name, username, password, and then select a file to upload to an FTP server
The BackgroundWorker class allows you to run an operation on a separate, dedicated thread
Time-consuming operations like downloads and database transactions can cause your user interface to seem as though it has stopped responding while they are running
When you want a responsive UI and you are faced with long delays associated with such operations
the BackgroundWorker class provides a convenient solution
To set up for a background operation, add an event handler for the DoWork event
Call your time-consuming operation in this event handler
To start the operation, call RunWorkerAsync
To receive notifications of progress updates, handle the ProgressChanged event
To receive a notification when the operation is completed, handle the RunWorkerCompleted event
The FtpWebRequest class enables you to programmatically create FTP connections to FTP Servers and transfer files
To play the demo, you need to create an FTP account
Thank you for watching this video