W3C home > Mailing lists > Public > www-validator@w3.org > November 1999

[PATCH] File Upload using FORMs

From: Terje Bless <link@tss.no>
Date: Sun, 14 Nov 1999 08:52:06 +0100
Message-Id: <199911140751.IAA04117@vals.intramed.rito.no>
To: W3C Validator <www-validator@w3.org>
('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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:14 UTC