Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Reshma
3 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
Replies have been turned off for this discussion
- Greg-DB3 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.
- Reshma3 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-DB3 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.
- kenzy1 year agoNew member | Level 2Is there any update api to change the file content ? Did u find any answer ?
- kenzy1 year agoNew member | Level 2I don't think so this is possible . It gives conflict error when I tried
- Здравко1 year 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-DB1 year 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 and Feedback
Get help with the Dropbox API from fellow developers and experts.
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, Facebook or Instagram.
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!