Forum Discussion

AF4's avatar
AF4
New member | Level 2
7 years ago

Read file contents using java

I wanna preiew a file content with out downloaded using java , i tried to work with 

getTemporaryLink

but when iv coped this link it download the file not streaming the content in the browser. i need you help here :) 

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    7 years ago

    The links returned by getTemporaryLink unfortunately are not meant for displaying the file in the browser, per the documentation:

    this URL should not be used to display content directly in the browser

    The Dropbox API doesn't offer a good way to do that, but I'll pass this along as a feature request. I can't promise if/when something like that would be implemented though.

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!