Closed ErwinGr closed 10 years ago
I am having the same issue on 1.1.7-pl
My snippet code for a single page:
[[!FileDownload? &getDir=downloads/Dir1
&fdlid=1
&chkDesc=fileDescription
]]
[[!FileDownload? &getDir=downloads/Dir2
&fdlid=2
&chkDesc=fileDescription
]]
[[!FileDownload? &getDir=downloads/Dir3
&fdlid=3
&chkDesc=fileDescription
]]
Each directory has 1 file.
Output is:
1st Header: File1
2nd Header: File1 File1 File2
3rd Header: File 1 File 1 File 2 File 1 File 2 File3
I noticed that jasonabird forked over the filedownload.class.php that fixed this issue.
https://github.com/jasonabird/FileDownload-R/commit/03e704487d531e6d9db2e9fc33f2a580e3bcb0f5
Here is the code for the entire php to replace that file with.
I am using filedownloadr-1.1.7-pl
I like to use Multiple snipplets in one page:
[[!FileDownload?&getDir=
assets/downloads/images
&fdlid=1
]] [[!FileDownload?&getDir=assets/downloads/documents
&fdlid=2
]]In images there are 2 files: img1 and img2 In docs there are 2 files: doc1 and doc2
The output is: header img1 img2 (=is ok)
header img1 img2 img1 img2 doc1 doc2 (=strange)
Is there a way to clear the list or to prevent files "img1" and "img2" appearing in the second part of the output? I tried to add &fdlid=
1
but no effect. Thanks for your help!