Hi,
My save handler generates JSON correctly (PHP code used to generate the JSON below). but I still get an upload error. The actual file is uploaded successfully.
An example of JSON output which generates the error is
My save handler generates JSON correctly (PHP code used to generate the JSON below). but I still get an upload error. The actual file is uploaded successfully.
$var_OutputArray
=
array
(
'attachid'
=>
$attachment
->AttachmentID,
'mod'
=>
$attachment
->ModuleCode,
'tic'
=>
$attachment
->Type);
header(
'Content-type: text/plain'
);
echo
json_encode(
$var_OutputArray
);
An example of JSON output which generates the error is
{
"attachid"
:
"labgh3v1din96yfk"
,
"mod"
:
"prj"
,
"tic"
:
"ticket"
}