I'm trying to upload a resume via add_candidate function but I can't get it to work! I think I tried everything but it still fails.
In the catsapi.php the resume field says: * @param string $resume (full path to local file). Is this the absolute path like '
/var/www/vhosts/....' or the 'http://<domain>' path?
This is what I tried for the resume path:
- $_FILES['resume']['name']
- $_FILES['resume']['tmp_name']
- Did a move_uploaded_file to save it (and chmod-ed it to 0777) before adding it with either the absolute path or 'http://'
$file_name = "uploads/".$_FILES['resume']['name'];
$file_temp = $_FILES['resume']['tmp_name'];
if( move_uploaded_file($file_temp, $file_name) )
{
....
}
I got the next notification:
Notice: Trying to get property of non-object in /var/www/vhosts/.../libraries/catsapi.php on line 587 0
I also got the notification: curl_setopt(): The usage of the @filename API for file uploading is deprecated which I disabled with error_reporting(E_ALL ^ E_DEPRECATED );
Can someone help me with this?