How to add file extensions for download detection?

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

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

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.

[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.