We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
dungun
7 years agoExplorer | Level 3
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...
- 7 years agoThe 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.)
Greg-DB
Dropbox Staff
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.)
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.)
dungun
7 years agoExplorer | Level 3
If I want to access the folder "images" in my root folder by giving the path as 'images' or 'images/' , it gives me the following pattern matching error
POST https://api.dropboxapi.com/2/files/list_folder` resulted in a `400 Bad Request` response: Error in call to API function "files/list_folder": request body: path: 'images/' did not match pattern '(/(.|[\r\n])*)?|
I just want to list the content of my 'images' folder which is in root folder and not in Apps/<App name >/images
POST https://api.dropboxapi.com/2/files/list_folder` resulted in a `400 Bad Request` response: Error in call to API function "files/list_folder": request body: path: 'images/' did not match pattern '(/(.|[\r\n])*)?|
I just want to list the content of my 'images' folder which is in root folder and not in Apps/<App name >/images
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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 or Facebook.
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!