Customer Portal Attach File in incident creation
Summary
Fatal error: Uncaught exception 'RightNow\Connect\v1_3\ConnectAPIError' with message 'File specified could not be found: /tmp/Annotation 2020-07-06 231020.png'Content
Please help. I'm trying to include add file attachment method in our new form. But Fatal error: Uncaught exception 'RightNow\Connect\v1_3\ConnectAPIError' with message 'File specified could not be found: /tmp/Annotation 2020-07-06 231020.png' was encountered. Below are my code.
Thanks in advance!
Jenny
Version
v1.3Code Snippet
$incident->FileAttachments = new RNCPHP\FileAttachmentIncidentArray(); $fattach = new RNCPHP\FileAttachmentIncident(); $temporaryName = $exfile; $uploaddir = get_cfg_var('upload_tmp_dir'); $file = $uploaddir ."/". basename(strval($temporaryName)); $fattach->setFile($file); $fattach->FileName = $exfile; $fattach->Name = $exfile; $incident->FileAttachments[] = $fattach;
Tagged:
0