Skip to content

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

@mediengaarage

Description

@mediengaarage

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions