Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong [url] and [link] path - missing folder #66

Open
mediengaarage opened this issue Apr 8, 2021 · 0 comments
Open

Wrong [url] and [link] path - missing folder #66

mediengaarage opened this issue Apr 8, 2021 · 0 comments

Comments

@mediengaarage
Copy link

When integrating fileDownloadR, a wrong link / url is generated. The file names are displayed correctly. Part of the path is missing from the url/link parameter

My snippet call:
[[!FileDownload? &dateFormat=d.m.Y &getDir=/test/ &countDownloads=1 &directLink=1 &toArray=1`

]]`

The output:
`Array
(
[file] => Array
(
[0] => Array
(
[ctx] => web
[fullPath] => /.../website/test/filename.pdf
[path] => /.../test
[filename] => filename.pdf
[alias] =>
[type] => file
[ext] => pdf
[size] => 1917547
[sizeText] => 1,83 MB
[unixdate] => 1617864995
[date] => 08.04.2021
[image] => /assets/components/filedownloadr/img/filetypes/document-pdf.png
[count] => 0
[link] => https://www.domain.de/filename.pdf
[url] => https://www.domain.de/filename.pdf
[hash] => ZwtmMzWvLJZ5ZJZ1BTMyMwyuAmxkAGywLzVkAwp0A2AuZGAwAQEwMQZmZ2WuZTLlLmN0ZGx4AwOwZTZmL2IyLwR5ZGpmAmp1AmH4A2L1AwpkLGAvAGMyBGN4MTMzZQR0LwqyLGH...wDkAJL=
[description] =>
)

    )

)`

The /test/ folder is missing at url/link parameter.

ModX: 2.8.1
PHP: 7.4
FileDownload R: 2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant