Buy Now
Sign in

Setting upload path in custom code

stami , February 08 at 10:54
Answered
S
stami
In chronoforms v5 you changed the path in custom code:
$forms->data_actions_config[]["upload_path"]=path
How do you do that in V6?
admin
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
If your main question got answered then please mark the answer using the button!​

Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
S
stami
Thanks Max!