We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
mets11rap
8 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-DB8 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.
- mets11rap8 years agoNew member | Level 2
How do I overwrite a file? When I just try to upload to the same dir, nothing happens.
- Greg-DB8 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.
- mets11rap8 years agoNew member | Level 2
Cool! Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 3 days ago
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 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!