Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
mets11rap
7 years agoNew member | Level 2
NodeJS NPM Module
Anyone know any good NPM modules that can Upload content, read the content of, and overwrite files?
4 Replies
- Greg-DB7 years ago
Dropbox Community Moderator
The official Dropbox API v2 JavaScript SDK is available on npm, and offers the ability to read/write/overwrite files in Dropbox via Dropbox API v2.
- mets11rap7 years agoNew member | Level 2
How do I overwrite a file? When I just try to upload to the same dir, nothing happens.
- Greg-DB7 years ago
Dropbox Community Moderator
There's a basic example of uploading using the filesUpload method in the SDK here.
You can supply a `mode` parameter, which takes a FilesWriteMode object, to specify the write mode you want. You can choose 'add', 'overwrite', or 'update'. The 'overwrite' mode will always overwrite an existing file, but the other modes are reccomended instead since 'overwrite' makes it easy to accidentally overwrite a new version of a file when you didn't mean to.
- mets11rap7 years agoNew member | Level 2
Cool! Thanks!
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!