On 03/06/05, Scott T. Emery <emery(a)nas.nasa.gov> wrote:
It may be exactly like that, which is why I
was hoping there
would be a facility. I *assumed* that the media link would work for
mp3s or oggs (as documented) and attempt to play them. I don't want
anything to happen to the tarball except that it get downloaded. If
I use the media link on an arbitrary file (say, one that ends in .tar
or .tgz :-) ) would it just download the file?
All [[media:foo|bar]] does is create a link like <a
href="...[path].../foo">bar</a>, so it's entirely up to the
browser
what to do with it. There's no magic syntax (yet) for doing anything
special with audio or video files.
So:
* you can upload files of any sort via [[Special:Upload]], but there's
a whitelist in LocalSettings.php which you'll need to edit
appropriately
* once uploaded, you can use [[:Image:Name of file]] to link to the
description page and [[Media:Name of file]] to link to the actual file
itself
* obviously, [[Image:Name of file]] will result in something ugly,
because it will try to include the file as an inline image.
--
Rowan Collins BSc
[IMSoP]