I cant get that to work:
with:
my_file = tandc
my_file_name = tandc.pdf
my_file_path = images
it becomes:
Attachments fields name = tandc
What is wrong? thx
V4 RC3.5.3
<?php
$form->files['my_file'] = array(
'name' => $my_file_name
'original_name' => '',
'path' => $my_file_path.$my_file_name,
'size' => '',
'link' => str_replace(JPATH_SITE.DS, JURI::root(), $my_file_path.$my_file_name)
);
?>
with:
my_file = tandc
my_file_name = tandc.pdf
my_file_path = images
it becomes:
<?php
$form->files['tandc'] = array(
'name' => $tandc.pdf
'original_name' => '',
'path' => $images.$tandc.pdf,
'size' => '',
'link' => str_replace(JPATH_SITE.DS, JURI::root(), $images.$tandc.pdf)
);
?>
Attachments fields name = tandc
What is wrong? thx
V4 RC3.5.3