goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

wrong url /assets/ #58

Open tvset opened 7 years ago

tvset commented 7 years ago

[[++assets_path]] /home/bh24674/www.domain.ru/assets/

[[!FileDownload? &getDir="assets/doc" &directLink="1" &toArray="1" ]] `Array ( [file] => Array ( [0] => Array ( [ctx] => web [fullPath] => /home/bh24674/www.domain.ru/assets/doc/приказ на директора.jpg [path] => /home/bh24674/www.domain.ru/assets/doc [filename] => приказ на директора.jpg [alias] => [type] => file [ext] => jpg [size] => 1147711 [sizeText] => 1,1 MB [unixdate] => 1480280588 [date] => 2016-11-28 [image] => /assets/components/filedownloadr/img/filetypes/image.png [count] => 0 [link] => http://domain.ru/ets/doc/приказ на директора.jpg [url] => http://domain.ru/ets/doc/приказ на директора.jpg [hash] => LGIuZQAzMwZjMJDmAmN0MQZ4ZwAzLzAzZmMxAmMwLmL1LGDlL2ZlaAGOxLmIzZwOvZwHjMQL2LJAuLmZmZTZ1BGp0AmHmL2IwBQMyLzZkLmR5ATMyBTD1ZwEvMzIuAQZ3AGquLmpjAzEzLGtjMQOwZzHmMzIuAGN4AmRlBQAwBGL= [description] => )

    )

)`

param [link] and [url] incorrect Unlike [[++assets_path]] but if you specify the outside "assets" that the path is correct.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39632874-wrong-url-assets?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).
goldsky commented 7 years ago

try to use &mediaSourceId so the path can be relative https://github.com/goldsky/FileDownload-R/issues/56

tvset commented 7 years ago

It works, thanks but folder names are lost and they do not attend.

parameter "mediaSourceId" by the way is not in the FAQ