title: curl: (26) couldn't open file
body: <p>I am getting this error, when I am trying to call a box api through curl. </p>
  
  <pre><code>curl: (26) couldn't open file
  </code></pre>
  
  <p>Can't find why! I am calling this api with a correct file name-</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I have seen all the three already asked questions but 2 of them are unanswered and one is specific to facebook.</p>
  
  <p><a href="https://stackoverflow.com/questions/23248755/curl-error-26-couldnt-open-file">cURL error 26 couldn&#39;t open file</a></p>
  
  <p><a href="https://stackoverflow.com/questions/15197530/fatal-error-uncaught-curlexception-26-couldnt-open-file-thrown-in">Fatal error: Uncaught CurlException: 26: couldn&#39;t open file &quot;&quot; thrown in</a></p>
  
  <p><a href="https://stackoverflow.com/questions/8568785/getting-fatal-error-uncaught-curlexception-26-couldnt-open-file">Getting Fatal Error Uncaught CurlException: 26: couldn&#39;t open file</a></p>