user.html.fileWriters.ftp
Frontier 5.0.x or greater is requiredThis is a FatPage containing the table user.html.fileWriters.ftp. The scripts in this table use Frontier's built-in TCP verbs so that Mac and Windows users can upload their web pages without an external FTP client. (Mac 5.0.x users need NetEvents)
If you have trouble with FatPages, you can download traditional packages for Macintosh or Windows.
These scripts take advantage of UserLand's "user-extensible" feature of the fileWriters framework. They are installed in the user table and will be "safe" from UserLand updates. When publishing pages, if the UserLand fileWriters framework detects that these scripts are in the user table, they will be used instead of the UserLand scripts. If you want to revert to the UserLand-supplied framework at any time, just remove this table from the user table.
To use the scripts, simply install this table. If you set up your #ftpSite table correctly, your pages will be uploaded to your web server when you "publish" your site.
Change History
1.31.01 - Improved error handling eliminates source of "Can't bind listen stream because TCP/IP error code -3247 - address already in use." errors. Extended range of ports that can be used when using "active" data connections. Improved handling of FTP host multi-line response (Brian Ablaza). Improved parsing of FTP 'HELP' command at logon to determine if host accepts PASV command.
7.9.99 - Added simple logging. Set user.html.fileWriters.ftp.allowLogging to 'True' to log all commands to and responses from FTP server(s). Uses the UserLand log suite so all logging configuration options are honored.
4.26.99 - Fixed typo in logon bundle. Could affect error recovery if logon failed (any 500 series response code).
1.9.99 - Fixed problems with sureDirectory that affected users with default, or "home", directories that were not the "root" of the ftp server.
12.30.98 - Some Windows and Mac users reported problems with fileWriters.ftp and Frontier versions 5.1.4 and earlier. Two major tcp-related bugs have been fixed in Frontier 5.1.5. Users are urged to upgrade to avoid these bugs.
"Chunking" is now performed only on MacOS and only with Frontier versions earlier than 5.1.5. Chunking is still helpful in earlier versions (and required when using NetEvents).
9.27.98 - Updated to mirror the changes made by UserLand in html.fileWriters.ftp.shutdown and now supports Scalable Content.
9.12.98 - Now sends "ABOR" command if PASV mode fails for some reason before attempting an active transfer connection.
Now logs on and off only once per publishing session.
These scripts now honor the #useImageCache directive setting. If false, all images on the page will be uploaded. If true, none will.
Known Problems
There are no provisions for changing permissions on host files or directories. The scripts assume you have read/write access to the destination directories.
Here's what the #ftpSite table looks for the web site containing this page:
Name Value Kind account myUserID string [8] directory /user/html/fileWriters/ string [23] domain erols.erols.com string [15] folder Hard Disk:Frontier:Websites:user:html:fileWriters: string [55] isLocal false boolean method ftp string [3] password myPassword string [10] url www.erols.com/asg/user/html/fileWriters/ string [40] Possible Improvements
I think it would be a good idea to keep track of any failed downloads so that they can be retried during subsequent publishing runs and/or a special, "try again" session.
Bug Reports
Send 'em to me, please, at asg@erols.com.
Alan
P.S. This works. I uploaded this page with it. ;-)
![]()
This page was last built on 2/1/01; 10:35:43 PM ET by Alan German, asg@erols.com. At the moment, I am using Macintosh OS to work on this website. The "Electric Cactus" graphic is based on original artwork owned by UserLand Software and is used with their permission.