cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NodeJS NPM Module

NodeJS NPM Module

mets11rap
New member | Level 2

Anyone know any good NPM modules that can Upload content, read the content of, and overwrite files?

4 Replies 4

Greg-DB
Dropbox Staff

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.

mets11rap
New member | Level 2

How do I overwrite a file? When I just try to upload to the same dir, nothing happens.

Greg-DB
Dropbox Staff

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.

mets11rap
New member | Level 2

Cool! Thanks!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    mets11rap New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?