File upload error: File specified could not be found: /tmp/
Content
Hi,
I am trying to upload file from customer portal, but i am getting an Fatal error: Uncaught exception 'RightNow\Connect\v1_2\ConnectAPIError' with message 'File path is not in temporary directory: /tmp/'
below is the code i am using.
$incident->FileAttachments =new RNCPHP\FileAttachmentIncidentArray();
$fattach = new RNCPHP\FileAttachmentIncident();
$fattach->ContentType = "text/text";
$file = '/tmp/'.$this->input->post('fileToUpload');
$fattach->setFile($file);
$fattach->FileName = $this->input->post('fileToUpload');
$oFinance->FileAttachments[] = $fattach;
Please help me how to set temp folder.
Thanks,
Chakravarthy
Version
3.2
Tagged:
1