ghoffart
(ghoffart)
April 16, 2009, 11:25am
1
Is there a more elegant way to add several file extensions to be automatically detected as downloads than hacking the source?
I couldn’t find a variable in config.inc.php nor did I see relevant posts for “download file type” searches.
I’d like to add .dmg, .bin, .hqx, .cpt, .iso and others.
Regards
Götz
mvanlaar
(mvanlaar)
April 16, 2009, 7:32pm
2
You can use a url like this: /piwik.php?idsite=1&download=http://piwik.org/piwik.zip
the you be redirected to http://piwik.org/piwik.zip
vipsoft
(vipsoft)
April 16, 2009, 9:13pm
3
It isn’t defined in config.inc.php.
For 0.2.34, please refer to http://piwik.org/docs/javascript-tracking/ – it should explain how you can set piwik_download_extensions to recognize other file extensions automatically.
vipsoft
(vipsoft)
April 16, 2009, 9:14pm
4
[quote=mvanlaar @ Apr 16 2009, 07:32 PM]You can use a url like this: /piwik.php?idsite=1&download=http://piwik.org/piwik.zip
the you be redirected to http://piwik.org/piwik.zip [/quote]
Um, no, Piwik doesn’t do redirects without the redirect parameter.