From 3ccdc9d447e21d6b634d425e7e0161670aaafda9 Mon Sep 17 00:00:00 2001 From: "http://smcv.pseudorandom.co.uk/" Date: Fri, 18 Oct 2013 12:56:15 -0400 Subject: [PATCH] Added a comment --- ..._7612923064284646c2ed59e2cd52845d._comment | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 doc/forum/download_links_for_attachments/comment_4_7612923064284646c2ed59e2cd52845d._comment diff --git a/doc/forum/download_links_for_attachments/comment_4_7612923064284646c2ed59e2cd52845d._comment b/doc/forum/download_links_for_attachments/comment_4_7612923064284646c2ed59e2cd52845d._comment new file mode 100644 index 000000000..eb6593868 --- /dev/null +++ b/doc/forum/download_links_for_attachments/comment_4_7612923064284646c2ed59e2cd52845d._comment @@ -0,0 +1,34 @@ +[[!comment format=mdwn + username="http://smcv.pseudorandom.co.uk/" + nickname="smcv" + subject="comment 4" + date="2013-10-18T16:56:09Z" + content=""" +> \[[setup.txt]] - opens the plain text in the same browser window + +That's the browser's choice: the web server says \"this is text/plain\" +and the browser decides to display it in the window. IkiWiki doesn't +actually serve the file, just provides a link to it; to force it +to be downloaded rather than opened, you'd have to configure +your web server to offer it as \"Content-Disposition: attachment\" +(e.g. ). + +The only way IkiWiki could get involved in this would be to +have the file download go via the CGI script, which could +add that header. That isn't currently a feature it has; +you could maybe add a plugin if you need this? + +> \[[settings.xml]] - opens the formatted xml as html + +Again, this is between the web server and the browser. + +> \[[.gitignore]] - it does not recognise this file + +IkiWiki excludes files related to the source code control systems +it uses, in order to avoid accidentally publishing a `.gitignore` +that's intended to control ignored files for the git repo +containing the pages' source. This is controlled by the +`wiki_file_prune_regexps`, `exclude` and `include` config options. +You can put `.gitignore` in `include` if you need to publish +files with that name. +"""]]