Open tvset opened 7 years ago
try to use &mediaSourceId so the path can be relative https://github.com/goldsky/FileDownload-R/issues/56
It works, thanks but folder names are lost and they do not attend.
parameter "mediaSourceId" by the way is not in the FAQ
[[++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.