I’m attempting to use FileDownload R with the FileDownloadLink call. No matter what I do the error log always displays the error 717 &getDir parameter expects a correct dir path. <b>""</b> is given.
The link in it’s default state works and appears on the page and allows the file to be downloaded, however with the error persisting it won’t let me add any additional parameters to the call so I can’t give it a template etc.
I think this error always gets output when no &getDir property is defined.
But the code should still work and you should still be able to add additional properties.
If no &getDir property is set, the value defaults to [''].
The value [''] is not empty, so the error message gets logged.
Sure enough, if I add the &getDir property and define it I no longer get the error. However even using the {} notation with base_path (not seen the curly brackets used before) I still can’t add additional properties.
The &tplCode never gets rendered and I just get the ‘default’ option of the filename as a link on the page itself.
I get the same result if I paste the example code from the manual page on the MODX site for FileDownloadLink but change the path to mine. I get the link but not the template code.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.