Forum Discussion

Mhd's avatar
Mhd
Explorer | Level 4
8 years ago

Generating Preview for a shared document

Hello, 

I am working on a system where users can submit sharing links from dropbox.  They are also able to preview these shared files.

When a user submits a file: we make a request to t get_sharing_link_metadata endpoint and get the id.
When a user wants to preview the file, we make a request to get_file_preview passing the id of the file.


Recently we had a situation where the shared file is in a personal folder, the file is shared through a sharing link but the folder is not shared with any other user.

When calling get_file_preview with the id of this file, we are gettting a "path not found " error.

- Am I correct in assuming that this because of the folder access right?
- Is there a way around it? an end point for previewing shared links?

Thank you

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    Would you be able to share a sample so I can make sure I understand the particular scenario you're referring to, and see if there if there's a solution I can offer? A sample link, the code you're running, and the error you're getting would be helpful. Thanks in advance!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from 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!