For a wiki that I administer, I have direct downloads turned off, for security reasons, to ensure that only authorized users can access the wiki and download files.
$EnableDirectDownload=0; This means that the download links are like this: https://www.example.com/wiki/Releases/Releases?action=download&upname=Installation_Instructions.pdf This works fine if someone clicks on the link, one gets the file and it downloads as the correct file name and all that. However, if someone does a right-click "Save as" then the file name that they get is "Releases.htm" rather than the actual filename. This is understandable, since the URL before the QUERY_STRING is https://www.example.com/wiki/Releases/Releases However this is really confusing and annoying to our users. Is there some way of making the non-direct download have a nicer URL, so that right-click Save-as will work? Maybe something like the following: https://www.example.com/wiki/Releases/Releases/Installation_Instructions.pdf?action=download But I don't know if this is possible, or how to make PmWiki do that. Yes, if I enabled direct download, that wouldn't be a problem, but direct download is *not* an option. Kathryn Andersen -- _--_|\ | Kathryn Andersen <http://www.katspace.com> / \ | \_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/> v | ------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
