1

I am using this dropbox api library for node.js

https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/node/upload.js

I am uploading a file using that code, but how do I get its shared path? The response I am getting is this which doesn't have it.

{ name: 'boo.txt',
  path_lower: '/boo.txt',
  path_display: '/boo.txt',
  id: 'id:0FFbLAVKMuAAAAAAAAAACA',
  client_modified: '2016-08-08T21:58:24Z',
  server_modified: '2016-08-08T21:58:24Z',
  rev: 'd4c5d5dc3',
  size: 3 }

Does anyone know?

Thanks

omega
  • 40,311
  • 81
  • 251
  • 474

1 Answers1

0

If by "shared path" you mean the shared link for the file, you'll need to call sharingCreateSharedLinkWithSettings to create a shared link for the file with path being the path to the file.

Or, if one does already exist, you can call sharingListSharedLinks with path being the path to the file and direct_only=true.

Greg
  • 16,359
  • 2
  • 34
  • 44
  • an example on how to implement would be really helpful. – Miraz Nov 24 '22 at 07:19
  • @Miraz I've answered your new post here: https://stackoverflow.com/questions/74558459/get-link-to-the-uploaded-image-in-dropbox-using-js-and-sdk – Greg Nov 24 '22 at 17:49