To work with the network in
module is used, and for data transmission over the network, you can actively use the QNetworkAccessManager class if you do not create your own protocol for data transfer. But for working with
it is enough to use
, with which we already worked when
downloading a file from the site
We will write a small program that will upload an arbitrary file to the server, which we will select on our PC using the file selection dialog. Also, the progress of the file upload to the FTP server will be shown.
To do this, there will be a button in the application window to open the file selection dialog. QLineEdit, in which the path to the file will be displayed. QLineEdit, in which we will enter the address where the file will be downloaded. A startup boot button, and a progress bar that will show the progress of the file upload to the server.