cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Specify overwrite option while uploading file using javascript sdk

New member | Level 2
New member | Level 2

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() ?

1 Reply 1
Highlighted

Re: Specify overwrite option while uploading file using javascript sdk

Dropboxer
Dropboxer

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?