[PATCH] File Upload using FORMs

('binary' encoding is not supported, stored as-is)
Ok, I /finally/ finished this. Attached are patches for "check" that lets
it validate an uploaded file and for index.html to enable it. There is also
another configuration file which is needed. It's the Content-Type to
"document type" mappings. This doesn't /have/ to be in a config file, but I
thought it made more sense and it preserved my sanity while code this. If
anyone objects I can hard code it again.

This patch pre-supposes that the 3 previous patches have been applied (i.e.
it incorporates the same changes). While it will apply cleanly against CVS
version 1.46, you'll need to add the configuration files manually. I'm
attaching all 4 here for convenience. This feature /can/ be added with less
changes but the resulting spaghetti code would be close to unmaintainable
and I'd really rather prefer not to have to try that.


The code has been pretty well tested, but since it's a fairly massive
change I can almost guarantee that there are some bugs lurking about in
there. While there are no /known/ problems, there are bound to be a few I
haven't found, so I'm labeling this as "Beta" code. It should be robust
enough to run on a live site, but if you've somehow managed to find a
"Mission Critical" use for the validator I reccomend you hold off on this
one until it's been stress tested a bit.


Feedback is, as always, strongly encouraged. :-)

Received on Sunday, 14 November 1999 02:51:50 UTC