Skip to content
Advertisement

curl: (26) couldn’t open file

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

JavaScript

Can’t find why! I am calling this api with a correct file name-

JavaScript

I have seen all the three already asked questions but 2 of them are unanswered and one is specific to 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

Advertisement

Answer

Sorry guys! My bad. I had not included extension of the file in the file name. After including it, it worked. I am answering this in case someone does the same mistake in future.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement