Forums

Setting upload path in custom code

stami 08 Feb, 2018
In chronoforms v5 you changed the path in custom code:

$forms->data_actions_config[]["upload_path"]=path
How do you do that in V6?
Max_admin 08 Feb, 2018
Answer
Hi stami,

in v6 you can use shortcodes anywhere, you can set your path inside a var and use it in the path field, for example, you can use this code in PHP action:
$this->set("mypath", "path goes here");
Then use {var:mypath} in the path field, the PHP action should be before the upload action of course.

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger