Archive of UserLand's first discussion group, started October 5, 1998.

Re: system.verbs.builtins.html.ftpText

Author:Brent Simmons
Posted:6/5/1999; 1:17:54 AM
Topic:system.verbs.builtins.html.ftpText
Msg #:7032 (In response to 7025)
Prev/Next:7031 / 7033

Thanks for pointing out this bug.

The correct fix is not call html.ftpText at all for binary objects. If you follow the scripts, you'll see that html.buildObject calls html.publishBinaryObject, which handles writing the file to disk and ensuring that it has the proper type and creator.

But then html.ftpText was re-writing the file to disk, and writing it as a text file this second time. No good.

To fix this, both html.commands.releaseRenderedPage and html.ftpTable should check to see if the object being published is a binary -- if so, don't call html.ftpText, since the file's already been written.




This page was archived on 6/13/2001; 4:50:36 PM.

© Copyright 1998-2001 UserLand Software, Inc.