我正在尝试使用 Podio API 做一些事情,我是初学者。所以我的代码是:
PodioItem::create($app_id, array('fields' => array(
"title" => ($name . " " . $surname),
"adres-e-mail-2" => $email,
),
array("file_ids" => $file->id) ));
项目创建没有问题,但没有上传文件。错误日志仅抛出弃用:
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
文件上传脚本正在运行,我可以将其保存到我的文件夹中。我有 Podio 文件 ID 工作。我现在真的不知道在哪里寻找错误。