|
|
@ -36,6 +36,8 @@ if (!is_array($_SESSION['compose']['attachments']))
|
|
|
|
|
|
|
|
|
|
|
|
$response = '';
|
|
|
|
$response = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (is_array($_FILES['_attachments']['tmp_name']))
|
|
|
|
|
|
|
|
{
|
|
|
|
foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath)
|
|
|
|
foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$tmpfname = tempnam($temp_dir, 'rcmAttmnt');
|
|
|
|
$tmpfname = tempnam($temp_dir, 'rcmAttmnt');
|
|
|
@ -75,7 +77,7 @@ foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath)
|
|
|
|
$OUTPUT->command('display_message', $msg, 'error');
|
|
|
|
$OUTPUT->command('display_message', $msg, 'error');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// send html page with JS calls as response
|
|
|
|
// send html page with JS calls as response
|
|
|
|
$OUTPUT->command('show_attachment_form', false);
|
|
|
|
$OUTPUT->command('show_attachment_form', false);
|
|
|
|