I am using following code snippet for uploading a file to Dropbox
dbx.filesUpload({path:"/"+file.name, contents:content})
.then(function(response) {
console.log(response);
})
.catch(function(error) {
console.error(error);
});
This is working as intended but throwing a path conflict error second time onward because the file exists already. How can I set the overwrite option true in the filesUpload() ?