Sj wrote:
(moving to wikitech-l)
Is this related to the recent file-type restrictions? Do we have
other code files in the database?
Yes, that would be the extra-restrictive settings imposed due to those
text/plain bugs and what-not.
Matthew Wilson wrote:
> There's lots of example code samples in the text. The code samples are
> getting longer and longer, and I'd like to make them available for
> download, but I can't tell how. I tried the Special:Upload page, but I
> kept getting the message ".c is not a valid image type" or something
> similar.
One rather odd workaround that occurs to me would be to put each
example on a seperate wiki-page (with *no* wiki-markup), and then link
to them as .../wiki.phtml?title=XXX&action=raw - which produces the
raw source of the page with MIME type "text/x-wiki". Certainly my
Mozilla then says that it doesn't recognise this filetype, and gives
me the option of saving it straight to file.
Which leads me to wonder: would IE attempt to display, and then detect
potentially dangerous code in, documents with that type? If so, this
is also a (rather long-winded) way round the actual intent of the
restriction (if I understand that intent correctly). I'm booted into
Linux atm, so I can't check.
--
Rowan Collins BSc
[IMSoP]