Counting downloads

Posted by pirate_paddy 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Counting downloads
September 13, 2014 11:36AM
Is there any way to count how many times a file has been downloaded from the Pi?

No recording of when/where or who, just a basic counter to see which files are popular.
Re: Counting downloads
September 16, 2014 05:46PM
Hi pirate_daddy,
no, we don't store anything like that.

I totally can understand that feeling of getting an idea of downloads.. but, we don't store anything.

Matthias


This is only my signature.
Re: Counting downloads
September 16, 2014 05:49PM
I guess I could modify the code to update a db entry on file download though?
Re: Counting downloads
September 16, 2014 05:52PM
Yes and no.
the download page is a simple directory list you can not modify in that way.

On LibraryBox we did such a modification. We are using an installed PHP & directory-listing.php script, that is brought into place. That script uses sqlite in the background and simply counts downloads.
That method only messed up special characters. ...

Matthias
Re: Counting downloads
September 16, 2014 06:05PM
That looks like it may fit the bill nicely. Had no idea about the LibraryBox project!

Thanks.
Re: Counting downloads
September 16, 2014 06:39PM
the url is: librarybox.us

You can enable upload-functionality after installing the LibraryBox again smiling smiley smoking smiley


This is only my signature.