微信上传图片,couldn't open file
程序员文章站
2022-03-08 17:59:27
...
上传媒体图片的时候,出现了couldn't open file
$path = "D:/wamp/www/weixin/images/A5Le5Zmn1j1j1899Jenw7D7Ec75ZW7.jpg";
$url = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token={$token}&type={$type}";
$data = array(
'media' => new CURLFile(ltrim($path))
);
回复内容:
上传媒体图片的时候,出现了couldn't open file
$path = "D:/wamp/www/weixin/images/A5Le5Zmn1j1j1899Jenw7D7Ec75ZW7.jpg";
$url = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token={$token}&type={$type}";
$data = array(
'media' => new CURLFile(ltrim($path))
);
上一篇: 循环队列停车场案例
下一篇: 关于微信开发工具的7篇文章推荐