Hello,
I just finished my work implementing plupload as custom field for multi uploads within chronoforms. Since I had to do a 'hack' in /administrator/com_chronoforms/form_actions/mail/mail.php to parse a field array for including the paths to the uploaded attachments I wanted to ask if its possible to implement a snippet like ...
if (isset($form->data["attachments"])) {
foreach($form->data["attachments"] as $attachment){
$email_attachments[] = $_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR.$attachment;
}
}
.. just before JUtility::sendMail() by default or point me to a more elegant solution.
Thanks in adavance,
mplock
I just finished my work implementing plupload as custom field for multi uploads within chronoforms. Since I had to do a 'hack' in /administrator/com_chronoforms/form_actions/mail/mail.php to parse a field array for including the paths to the uploaded attachments I wanted to ask if its possible to implement a snippet like ...
if (isset($form->data["attachments"])) {
foreach($form->data["attachments"] as $attachment){
$email_attachments[] = $_SERVER["DOCUMENT_ROOT"].DIRECTORY_SEPARATOR.$attachment;
}
}
.. just before JUtility::sendMail() by default or point me to a more elegant solution.
Thanks in adavance,
mplock