We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

dungun's avatar
dungun
Explorer | Level 3
7 years ago

Error Listing Contents of a folder

Hi , I am making an api call to  https://api.dropboxapi.com/2/files/list_folder to list the contents of a folder named "images" .     here is my code    $res = $client->request('POST', 'https...
  • Greg-DB's avatar
    7 years ago
    The leading slash is required when identifying non-root paths, so "/images" would be the correct format.

    The not_found error indicates that there is nothing at the specified path in the connected account. That being the case, make sure that:
    - you're using an access token for the account you mean to interact with.
    - you're using the right path and that there is something at that path in that account. (You can use dropbox.com to check.)
    - if you're using an app with the "app folder" permission, that the path exists inside the special app folder for the app in the connected account. (Apps with the "app folder" permission only have access to the app folder automatically created for them, so paths are automatically interpreted relative to that app folder. For example, "/images" would actually point to /Apps/<app folder name>/images" by default.)