【发布时间】:2014-07-06 23:20:51
【问题描述】:
当我尝试通过 curl 调用 box api 时出现此错误。
curl: (26) couldn't open file
找不到原因!我用正确的文件名调用这个 api-
curl https://upload.view-api.box.com/1/documents \
-H "Authorization: Token YOUR_API_TOKEN" \
-H "Content-type: multipart/form-data" \
-F file=@A_correct_file_name
我已经看到所有三个已经提出的问题,但其中 2 个没有答案,一个是特定于 facebook 的。
cURL error 26 couldn't open file
Fatal error: Uncaught CurlException: 26: couldn't open file "" thrown in
Getting Fatal Error Uncaught CurlException: 26: couldn't open file
【问题讨论】:
-
你检查权限了吗?
-
@Shubham 我已经在包含文件的目录中完成了这个 'chmod 777 .'。这还不够吗?