Our Community is in read-only mode until April 8th, learn more here. You can still search existing threads or get help via Dropbox Support, the Dropbox Help Center, or Learn.
Forum Discussion
SuryaMopuru
4 years agoExplorer | Level 3
Renaming a file is creating a copy in dropbox .NET SDK
When i try to rename file i see in dropbox a copy being created rather than just a name change.
This is how i am trying to achieve this:
using (var dbx = new DropboxClient(RefreshToken,Appkey...
Greg-DB
Dropbox Community Moderator
4 years agoThe UploadAsync method is for uploading a file (whether a new file or a new version of an existing file). If you want to rename an existing file you should use MoveV2Async instead. That takes a fromPath for the existing path (including file name) of the existing file to move or rename, and toPath for the new path (including file name) that you want the file to have instead.
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!