Thanks for the reply Garry, I am using [~[*id*]~] so I will try your fix to see if that takes care of it.
edipo, I will have an update for you to try later today. Hopefully not to long, I need to get some work done though, so it may be a little while.
Kyle
edipo,
Did you update the files in your filedownload folder? I made some changes to the files: filedownload.inc.php and download.php
I want to rule this out before changing the code.
Yes I have update all files, with the file of the 1.6 version
Sorry for my bad English

Edipo,
Here is an updated version. Let me know if it all works correctly.
Kyle
I can’t seem to get the download count to work.
I created a file assets/filedownload/filecount.txt, which is initially blank (zero bytes).
I call the FileDownload snippet using the &downloadCount=’1’ parameter.
When I download a file, the counter (called using [+counter+] in the layout chunk) is not incremented by one (it remains zero regardless of how many times I download a file).
Am I missing something?
Thx
Ron
-
MODX Staff
- 1,535 Posts
Hi Ron,
Just a couple of things to check that spring to mind:
1. Are you calling the snippet uncached? ie. using [!filedownload!]
2. Are you using backticks instead of single quotes when calling parameters in the snippet? eg. &downloadCount=`1`
Hope that helps, Garry
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com