We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

mets11rap's avatar
mets11rap
New member | Level 2
8 years ago

NodeJS NPM Module

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

4 Replies

  • mets11rap's avatar
    mets11rap
    New member | Level 2
    8 years ago

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

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 3 days ago
412 Following

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!