Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!

Forum Discussion

Esikhoob's avatar
Esikhoob
Helpful | Level 5
2 years ago
Solved

What path argument should I pass to .NET CreateSharedLinkWithSettingsAsync()

Hi In our Website, written with ASP.NET and C#, we want to use .NET API to get shared link for a file. I found the method for this purpose named:  CreateSharedLinkWithSettingsAsync() but all my trie...
  • Greg-DB's avatar
    Greg-DB
    2 years ago

    Esikhoob A 'path/malformed_path' error would indicate that the path value is invalid due to not being formed correctly; for example, this can occur if there is whitespace at the end of the path value.

     

    A 'path/not_found' error would indicate that the path value is properly formed, but nothing was found at the specified path in the connected account/root.

     

    Apps with the "app folder" access type are automatically rooted in the special app folder created for the app in the connected account, so yes, if you have a file named "Iran4K.mp4" directly in the app folder in the connected account, you would use a path value of "/Iran4K.mp4".

     

    To list the contents of whatever root your app is accessing, such as the app folder, you can use ListFolderAsync/ListFolderContinueAsync starting with 'path' set to the empty string "'.