There's also a HTTP header designed specifically to address this. For
those files, you need to set Content-Disposition: attachment[1].
I don't know what webserver you're using, but here are some
instructions on how to make Apache serve PDF's in this fashion[2].
Making rules for other filetypes, or for files only within certain
directories shouldn't be too much more difficult.
[1]
http://msdn.microsoft.com/en-us/library/ms527580(EXCHG.10).aspx
[2]
http://www.thingy-ma-jig.co.uk/blog/06-08-2007/force-a-pdf-to-download
-- Jim R. WIlson (jimbojw)
On Thu, Jul 31, 2008 at 6:42 AM, Daniel Friesen <dan_the_man(a)telus.net> wrote:
That's configuration on your end. Either configure
your browser to
handle the mimetypes in a special way, or have your webserver send a
mimetype of application/octet-stream so that your web browser will
consider it a downloadable file.
~Daniel Friesen(Dantman, Nadir-Seen-Fire) of:
-The Nadir-Point Group (
http://nadir-point.com)
--It's Wiki-Tools subgroup (
http://wiki-tools.com)
--The ElectronicMe project (
http://electronic-me.org)
--Games-G.P.S. (
http://ggps.org)
-And Wikia ACG on
Wikia.com (
http://wikia.com/wiki/Wikia_ACG)
--Animepedia (
http://anime.wikia.com)
--Narutopedia (
http://naruto.wikia.com)
Dan Sinclair wrote:
Hi,
On my wiki, I have a lot of links to files which are all located on a
local server. However, when I click on them in the web browser, they
open up in the browser. So my question is, is there any way to make them
either open up in the correct application on the PC or in a separate
window in the browser?
Cheers,
Dan
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l