Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Anyone know any good NPM modules that can Upload content, read the content of, and overwrite files?
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.
How do I overwrite a file? When I just try to upload to the same dir, nothing happens.
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.
Cool! Thanks!
Hi there!
If you need more help you can view your support options (expected response time for a 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!