[ewiki] Re: posting images w/ flat files

Matthew S. Allen wrote:
I have been having trouble posting images to my ewiki, which is
configured with the following two options:

define("EWIKI_SCRIPT_BINARY", "?binary=");
include("plugins/db/flat_files.php");

I am using mozilla on linux to interact with the wiki. My understanding,
based on this 2004 post, is that this doesn't work:

Instead of "plugins/db/flat_files.php" you could use the "fast_files" wrapper plugin, which uses binary-safe PHP serialized() hash files (guaranteed to work). The binary_store plugin (see Andys mail) additionally allows to upload very very large files and images.

Our flat files use CRLF terminators in the head - which is good enough
for textual pages, but always leads to problems with binary files. I've
fixed that bug already a dozen times, but it comes up over and over
again (maybe environment related glitches, or I screwed it once more).

mario

Other related posts: