We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Reshma
4 years agoExplorer | Level 3
Is there any way to update a File using API's or Java SDK Methods?
Is there any way to update a File(doc, pdf, txt) uploaded from my local machine into Dropbox web app using API's or Java SDK Methods?
From Dropbox web app , we can update the doc file by choosing open in word for the web option.
Can I perform the same action using Dropbox File API's or Dropbox Java SDK methods??
do we have something like Files/Update API or Files().update() sdk method??
7 Replies
- Greg-DB4 years ago
Dropbox Community Moderator
You can upload new versions of files using the upload functionality, such as the upload method. You can find an example here.
- Reshma4 years agoExplorer | Level 3
Okay !! I'm aware of this upload functionality.. So we don't have any update api's or sdk methods for files right ? all we can do is upload another versions of files. Is my understanding correct ?
- Greg-DB4 years ago
Dropbox Community Moderator
I'm not sure I follow. Can you clarify what functionality specifically you're looking to implement? You can use the upload methods to overwrite existing files with new data, for instance.
- kenzy2 years agoNew member | Level 2Is there any update api to change the file content ? Did u find any answer ?
- kenzy2 years agoNew member | Level 2I don't think so this is possible . It gives conflict error when I tried
- Здравко2 years agoLegendary | Level 20
kenzy wrote:
I don't think so this is possible . It gives conflict error when I tried😁 kenzy, Yes, by default it's so. If nothing set explicitly upload mode is 'add' - 'Do not overwrite an existing file' - as stated in documentation about this mode. Did you try overwrite or update mode? 😉
Hope this helps.
- Greg-DB2 years ago
Dropbox Community Moderator
[Cross-linking for reference: https://stackoverflow.com/questions/78102817/is-there-a-way-to-update-dropbox-files-through-api ]
kenzy As Здравко said, you can control this behavior using the write mode. For instance, if you're using the Dropbox Java SDK like originally mentioned in this thread, check out UploadBuilder for the options you can use.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 2 days ago
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!