goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

First character of path missing when using directLink=`1` #30

Open pepitoe opened 10 years ago

pepitoe commented 10 years ago

I was trying out using directLink as I had a report that some people were getting their downloads blocked due to the use of application/force-download in the script in normal mode, but am having trouble with the resulting links missing a character.

[[!FileDownload? &getDir=documents/General/ &browseDirectories=1 &extShown=pdf &directLink=1 ]]

The links generated are showing ocuments instead of documents. This is on PHP 5.4.27 and Modx 2.2.14. Am I doing something wrong?

thanks

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1819652-first-character-of-path-missing-when-using-directlink-1?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github).
narno07 commented 10 years ago

Me to on Modx 2.2.14, PHP 5.3.10 and it's my only issue to use FileDownload-R with files up to 50Mb

Gallenkamp commented 8 years ago

Sorry to dig this one out, but it is still a bug. Link says "ts/..." instead of "assets/..." - "asse" is missing. MODX 2.5.1, FileDownloadR 2.0.0

apathyuk commented 7 years ago

For me it is showing "ssets" rather than "assets"

This is a problem for [link] and [url]