Hello,
I have fileupload element on a form and want to get this file name and import its data to mysql table.
Element name is kcsvupload .
Code is added in Start of Form Submission event (onBeforeProcess).
$fileName = $formModel->formData['kcsvupload'];
var_dump($fileName);
CSV file has been uploaded to that record.
I am not getting that variable value (fileName) here.
I also tried $data['tkbcsv___kcsvupload']; and no data as well.
Please help. Thanks
I have fileupload element on a form and want to get this file name and import its data to mysql table.
Element name is kcsvupload .
Code is added in Start of Form Submission event (onBeforeProcess).
$fileName = $formModel->formData['kcsvupload'];
var_dump($fileName);
CSV file has been uploaded to that record.
I am not getting that variable value (fileName) here.
I also tried $data['tkbcsv___kcsvupload']; and no data as well.
Please help. Thanks