php curl 上传文件报错 26 couldn't open file 发表于 2018-11-09 | 分类于 php | | 总阅读量 用PHP的curl进行文件中转上传,发生了错误 curl: (26) couldn’t open file 原因POST 方法上传文件,文件上传方式1$file = new \CurlFile($filpath); 其中$filepath使用了相对路径 解决方法调用CurlFile时,使用文件的绝对路径 参考链接stackoverflow.com