Forum Discussion

Deon B.'s avatar
Deon B.
New member | Level 1
11 years ago

Issue : api add method in codeigniter library

When try to upload media on dropbox using api(codeIgniter library) that return 'stdClass Object ( [error] => stdClass Object ( [file] => Expecting a file upload ) ) '

4 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    Unfortunately as we didn't make that CodeIgniter library we can't really provide any support for it ourselves. Perhaps someone on the forum is familiar with it though. Otherwise, you may want to ask the developer for help.

  • Deon B.'s avatar
    Deon B.
    New member | Level 1
    11 years ago

    But my question is about the error message 'Expecting a file upload'. When this type of error occur?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    That error indicates that the API didn't receive a file included with the POST to the /files (POST) endpoint as expected. Note that if the library supports it, we recommend using the /files_put endpoint instead.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!