FTP Transfer of Files to Your WWW Server

Table of Contents

(Click on a Topic Below)

Introduction

FTP Illustrations Using Netscape Navigator

The WSFTP.EXE Program

FTP via the Old TelNet Option

Introduction

Return to Table of Contents

Generally, you will be authoring your documents (e.g., files with extensions such as HTM, JPG, GIV, PDF, AVI, MOV, etc.) on a desktop computer and then transfer them to a remote web server computer. I recommend that you transfer your picture (JPG,GIF) files before you start to edit a HTM file, because you can then link to your pictures while you are editing. An example picture of this transfer process is shown below:

For Netscape viewing, the main document to be viewed showed be transferred as the name index.ftml with the "l" at the end to designate the INDEX>HTML main document. Other files need not have this "L" added at the end.

FTP Illustrations Using Netscape Navigator

Return to Table of Contents

Warning 1: I am still having problems transferring files in binary form using FTP in Navigator. I am checking to see if there is a binary option. If there is no such option, only transfer HTM and other text files using Netscape Navigator.

Warning 2: I do not know how to change file names when transferring in a Netscape Navigator FTP session. The one file that needs a name change is the index.HTM file that needs to become index.HTML on the web server. You can change file names using the The WSFTP.EXE Program..

Probably the easiest way to transfer files is with a WWW browser such as Netscape Navigator. The first step is to put in the FTP address of a remote computer. After you have logged into that computer, use the <File, File Upload> menu option in Netscape Navigator.

Two examples of Netscape Navigator FTP addresses are shown below:

ftp://rjensen@www.trinity.edu/users/rjensen/Local/HTML-Documents/

ftp://rjensen@www.cs.trinity.edu/users/rjensen/Local/HTML-Documents/

After you type in the FTP address, hit the Enter key. A dialog box will probably appear asking you for a password. After you give the correct password, you may then use the <<File, Upload File>> menu options.

The WSFTP.EXE Program

Return to Table of Contents

At Trinity University there is the following path to the following great WS_FTP software:

m:\tucc\ws_ftp\wsftp.exe

The program can be run from Drive m or you may copy the entire ws_ftp directory into your Drive c hard drive. When you run the wsftp.exe program, you will get a dialog box requiring that you fill in the path to the remote web server. An example is shown below:

If you logged in properly you will get a screen that looks something like the one below:

The left side is your local computer. You can change directories by clicking on the ( . . ) line in the top window or by typing the path using the [ChgDir] button. You should locate the local files that you want to transfer to the remote computer.

The right side of the screen is the remote computer. You may need to click on (Local) and (HTML-Documents) if you are already there. The files listed in HTML-Documents should be the files in your personal directory. The arrows circled with colored boxes indicate the transfer direction. If you want to copy a files from the local machine to the remote machine, select those files and click on the right arrow button. You may also use the left arrow to copy selected files in the remote computer into your local computer. Note that you can use the Shift key to multiple select files in sequence and the Ctrl key to select multiple files not in sequence.

FTP via the Old TelNet Option

Return to Table of Contents

FTP Procedures at Trinity University
At Trinity University, the old fashioned way to transfer files is to commence an FTP session using TelNet.

For Netscape viewing, the main document to be viewed showed be transferred as the name index.ftml with the "l" at the end to designate the INDEX>HTML main document. Other files need not have this "L" added at the end.

A sample FTP screen is shown below.

If the login works, you will get a screen saying that your are logged in. In the screen below the code shown in blue or purple was typed in according to the Trinity University requirements.

The first thing you should do is to choose the menu choice (Configure, Binary). At the ftp> prompt you should first type umask 022 in order to be assured that outsiders can read your transferred files but not write to them. (The Trinity University faculty/staff WWW server will probably not cause any problems if you do not use the umask 022 command. Other computeres such as those belonging to the Computer Science Department may need this umask 022 command.) Next you should enter the "put" commands to transfer your files into the server. Note the addition of the "l" at the end of the index.html file.

Next you should enter the "put" commands to transfer your files into the server. Note the addition of the "l" at the end of the index.html file. The index.htm file needs to be put in the WWW server as index.html. All other HTM files need not have the HTML extension. Be sure to use the same file names in the WWW server that you used in your documen hyperlinks.

The Needed UNIX Commands
The "put" command is used to transfer files from your local computer to a server directory. Files can be transferred in the other direction with a "get" command. Files can be deleted with a "del" command. To view the set of files in your directory on the server use the "dir" command and hit the Enter key.

Return to the Top of This Document

Return to the "How To Publish ..." Document

Return to the Index of Bob Jensen's Public WWW Documents