1) FTP is used to upload the files on the server from the client side where it is installed on the computer of clients.
2) FTP client is checked for the installation of the software and according to that the appropriate directory is uploaded on the hosting server.
3) The hosting server uploads the files that is being created by the user and set the permissions for it so that public can access it.
4) Web hosting uses different directories like HTML that is used as var/www/html that is determined using the FTP client.
5) Initial local directory is being set up using FTP client and it is where the website gets stored.
6) The transfer mode is being determined for the files that need to be transferred either in ASCII or BINARY mode.