ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
177 stars 7 forks source link

Count downloads of files #45

Closed ThomasTJdev closed 5 years ago

ThomasTJdev commented 5 years ago

Proposal

1) Currently files are uploaded to the folder images - should this be splitted or renamed to files? It's just ugly to serve a PDF file from a folder names images

2) Each time a file is served to a user, sendFile(), inc(1) to table file.downloadCount. This will allow to the user to have statistics.

juancarlospaco commented 5 years ago

Rename images to files.

Theres no tables for files, you mean to add one, it should only need the downloadCount I guess, I agree.

I think table and folder should have the same name, so files for both.

ThomasTJdev commented 5 years ago

I agree :+1:

ThomasTJdev commented 5 years ago

Fixed in PR #39