I'm trying to do something with Podio API, I'm a beginner. So my code is:
PodioItem::create($app_id, array('fields' => array(
"title" => ($name . " " . $surname),
"adres-e-mail-2" => $email,
),
array("file_ids" => $file->id) ));
Item is created without problems, but without a file uploaded. Error log throws only deprecation:
PHP Deprecated: curl_setopt(): The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead in /home/avat/public_html/avat/aiesec/test/podio/lib/Podio.php on line 179
File upload script is working, I can save it to my folder. I have Podio file ID working. I don't really know where to look for errors now.