Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sosnos
6 years agoExplorer | Level 4
Download on scoped app
I got a Scoped App (App Folder) where I put a JPG image and now I want to download it with my Javascript app, on a Node JS environment. When I try to use the "filesDownload" method, I get the error ...
- 6 years ago
This error message indicates that your API app has the "app folder" access type, but you're supplying the "Dropbox-API-Path-Root" header. For example, in the Dropbox API v2 JavaScript SDK, you might be setting that via the pathRoot option on the Dropbox object.
Apps with the app folder access type are restricted to their own app folder, and so cannot access other roots. That being the case, you should not attempt to set another path root when using an access token for an app with the app folder access type, so don't set the pathRoot option.
Also, regarding your path value, note that you should not include the path to your app folder itself. To access a file in your app folder, you would just use a path relative to the app folder, like "/MyImage.jpg".
Greg-DB
Dropbox Community Moderator
6 years agoThis error message indicates that your API app has the "app folder" access type, but you're supplying the "Dropbox-API-Path-Root" header. For example, in the Dropbox API v2 JavaScript SDK, you might be setting that via the pathRoot option on the Dropbox object.
Apps with the app folder access type are restricted to their own app folder, and so cannot access other roots. That being the case, you should not attempt to set another path root when using an access token for an app with the app folder access type, so don't set the pathRoot option.
Also, regarding your path value, note that you should not include the path to your app folder itself. To access a file in your app folder, you would just use a path relative to the app folder, like "/MyImage.jpg".
sosnos
6 years agoExplorer | Level 4
That was it, I was setting it via the dbx.pathRoot attribute because I followed the guide on GitHub. Thanks for your help!
About 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!