Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
SteveBendOR
8 years agoNew member | Level 2
Overwrite a File
Folks; I'm brand new and just assessing the API but have this question: I see that Dropbox API does not directly support appending text to an existing file. If I want to accomplish that task it wo...
- 8 years ago
Yes, the API unfortunately doesn't offer a way to append directly (I'll send this along as a feature request though), so you'd need to download and upload the edited content.
First, to download the existing file, you would use /2/files/download.
After you make your modifications locally, you would then upload the new version using /2/files/upload.
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.
Greg-DB
Dropbox Community Moderator
8 years agoYes, the API unfortunately doesn't offer a way to append directly (I'll send this along as a feature request though), so you'd need to download and upload the edited content.
First, to download the existing file, you would use /2/files/download.
After you make your modifications locally, you would then upload the new version using /2/files/upload.
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.
- SteveBendOR8 years agoNew member | Level 2
Greg K
Perfect! Thank-You.
Timely, on-point and answering all aspects of the question.
Sweet!
About Discuss Dropbox Developer & API
Make connections with other developers
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!