Windows Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 5.00

Uploading Files to FTP Servers

This section provides a tutorial example on how to upload files to a FTP server.

Allowing other users to upload files to your FTP server needs some extra security settings. So let's re-visit the IIS FTP Server settings:

1. Run IIS, and open the Default FTP Site properties dialog box.

2. Visit the Security Accounts and Home Directory tabs, and making the following changes:

  • Allow Anonymous Connections: unchecked - To stop other users accessing your FTP server anonymously. The server can only be accessed now by admin users registered on your machine.
  • FTP Site Directory Write: checked - To allow other users to upload files.

To upload files, run the FTP client in a command window:

>ftp localhost
Connected to localhost.
220 Microsoft FTP Service
User (localhost:(none)): herong
331 Password required for herong.
Password: ********
230 User herong logged in.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
  11:05PM                 5537 ftp.html
  03:43PM                 5082 index.html
  08:39PM                 1174 reference.html
226 Transfer complete.
ftp: 155 bytes received in 0.00Seconds 155000.00Kbytes/sec.
ftp> put help.html
200 PORT command successful.
150 Opening ASCII mode data connection for help.html.
226 Transfer complete.
ftp: 728 bytes sent in 0.00Seconds 728000.00Kbytes/sec.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
  11:05PM                 5537 ftp.html
  11:53PM                  728 help.html
  03:43PM                 5082 index.html
  08:39PM                 1174 reference.html
226 Transfer complete.
ftp: 205 bytes received in 0.00Seconds 205000.00Kbytes/sec.
ftp> quit
221

Note that:

  • To access the FTP server, you need provide a user name and a password of the server's Windows system.

Sections in This Chapter

Setting Up FTP Server with IIS

FTP Command Line Client Program

Downloading Files with FTP Commands

Checking FTP Server Log File

Uploading Files to FTP Servers

Dr. Herong Yang, updated in 2008
Uploading Files to FTP Servers