Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Tshaniii
2 years agoHelpful | Level 5
dropbox file download - dbx.filesDownload
var dbx = new Dropbox({ accessToken: dbx_access_token , fetch}); await dbx.filesDownload({ path: dbx_path }).then(async (response) => { console.log("down"); awa...
Tshaniii
2 years agoHelpful | Level 5
In
await dbx.filesListFolder({ path: '' }), it prints Regulatory (which is a folder in the application folder - and the permission scope is application)
but , await dbx.filesListFolder({ path: '/Regulatory' }), await dbx.filesListFolder({ path: 'Regulatory' }), await dbx.filesListFolder({ path: 'Regulatory/' }) gives 0 entries with an error like this " error: `Error in call to API function "files/list_folder": request body: path: 'Regulatory/' did not match pattern '(/(.|[\\r\\n])*)?|id:.*|(ns:[0-9]+(/.*)?)'` " .
thanks also i need help with saving the downloaded file to a selected location...
Здравко
2 years agoLegendary | Level 20
Tshaniii, The error, you're receiving just reflect rules that all paths, pointing file/folder in any Dropbox account, should follow to and you have violated. In particular, all paths (except the root) must start with forward slash and no any trailing slashes (both for files and folders). It may be easier to use the paths as appear in your preceding list or use the ids there; they are mandatory correct. This is valid for both downloading and listing nested folders.
Good luck.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!