I am using the API to upload a file to the candidate record in CATS,
$file = realpath('../public/uploads/'.$_SESSION['userid'].'_score.csv');
This is working great in the production environment but I am testing a new version of WAMP using identical PHP code from production in a new test environment and am receiving an error.
The error is code 412 with no file being uploaded and I believe that the 412 error is for precondition not met. Trying to find out what precondition I am missing in the test environment.
FYI,
Another API call is working fine, so I believe this is only affecting file uploads.
$api->update_candidate($_SESSION['userid'],$finalvalue,'','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','','');