Count the numbers of downloads?

0
I'm building an application where users can download files. I want to know how many of these files have been donwloaded. How do I do that?
asked
2 answers
0

Hi Ratanon,

Instead of using the standard download button you will have to use a create a custom download microflow. In your domainmodel you create an entity counter which you associate with file.

When a user presses the download button you will start a microflow with the file as parameter. The first activity can then be the download file action. If the download is succesful you can retrieve the counter associated with this file and set it to $counter+1 and commit it. This way you can count the downloads.

 

Hope this helps

answered
0

thank you

answered