We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

Filip J.1's avatar
Filip J.1
New member | Level 1
9 years ago

FilesRoutes.DownloadAsync Method (String, String) Revision Format .Net

DownloadAsync specifies that its second argument is deprecated and you should specify the revision in the path.

How exactly do we specify the revision in the path? 

Do we just append it to the very end of the path?

Is there a specific format we are supposed to use? 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Apologies that isn't better documented! You would specify a rev in the path parameter like this: "rev:a1c10ce0dd78". That is, the string "rev:", followed by the rev value for the file and version you want.

  • Filip J.1's avatar
    Filip J.1
    New member | Level 1

    So if I was doing a string concatenation, the format for the first parameter would look like this

    First Parameter = (path to file) + rev: + (rev value)

    ie: First Parameter = testfolder/file.docxrev:a1c10ce0dd78

    Is this correct? 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    No, just the string "rev:a1c10ce0dd78" is sufficient to identify both the file and revision, so that's all you should supply.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 2 hours ago
325 Following

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!