How to add file extensions for download detection?


(ghoffart) #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) #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) #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) #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.