To Do
- There's a bug with the TWiki/bin/viewfile script in the current distribution. This module will always change the name of the download filename to the name of the topic unless you retrieve the latest version. The reason this occurs is as follows: If the requested version is the latest version, viewfile redirects the CGI to download the latest copy on the server. Otherwise it manually builds a download stream of the file from rcs. When it builds the download stream from rcs, it doesn't include a Content-Disposition: tag, which is how you specify what the download filename is. I fixed viewfile on my site to do this. If you want this fix (also fixes the same problem from the Attachment screen), use viewfile.zip
--
EdLott - 08 Dec 2001
Cloned this topic to
Codev.ViewfileUsesTopicName since it should be fixed in the core code.
--
PeterThoeny - 10 Dec 2001
A small feedback: It would be more consistent to put parameter values in double quotes, i.e.
%VERSIONLINK{file="foo.c" version="1.1"}%.
This can be parsed easily with
TWiki::Func::extractNameValuePair().
--
PeterThoeny - 04 Jan 2002
Would there be value in incorporating this as a standard feature?
--
MartinCleaver - 20 Jan 2002