Good evening,
I need to insert in the action track to upload files
the names of two fields so as to then create a folder in which to insert the images from the compilation.
I found solutions on the forum through custom codes but with chronoforms 6 they don't seem to work:
or
I also tried to adapt them by entering $form->data with $this->data
I would be grateful to those who could help me,
Thanks
I need to insert in the action track to upload files
the names of two fields so as to then create a folder in which to insert the images from the compilation.
I found solutions on the forum through custom codes but with chronoforms 6 they don't seem to work:
$path = JPATH_SITE.'/images/phocagallery/'.$form->data['title'];
$mode='755';
JFolder::create($path, $mode);
$form->actions_config[1]['Upload_path'] = $path;?>
or
actions_config[1]['upload_path'] = JPATH_SITE.'/components/com_chronoforms5/chronoforms/uploads/'.$form->form['Form']['title'].'/'.$form->data['text4'].'/';?>
I also tried to adapt them by entering $form->data with $this->data
I would be grateful to those who could help me,
Thanks
I tried to use this code
What am I doing wrong?
Thanks
<?phpbut this is the error that returns me:
$this->set("upload15", "path", "JOOMLA_PATH".DS."images".DS."partner".DS.$this->get('settore_attivita').DS);
?>

What am I doing wrong?
Thanks
this worked to me
{path:root}/images/
{path:root}/images/
This topic is locked and no more replies can be posted.