curl: (26) couldn't open file

后端 未结 6 1772
盖世英雄少女心
盖世英雄少女心 2020-12-06 00:26

I am getting this error, when I am trying to call a box api through curl.

curl: (26) couldn\'t open file

Can\'t find why! I am calling thi

6条回答
  •  再見小時候
    2020-12-06 00:47

    I was having a similar problem after changing to PHP 5 (I was using the @ upload method and it was deprecated, so I had to start using CURLFile), and the solution to my problem was found in this stack.

    Solution: curl upload won't work with relative paths, use the full path instead

提交回复
热议问题