cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Display snippets of file content

Display snippets of file content

jsantiagor90
Explorer | Level 3

Hi, I am using the dropbox api, I would like to show a preview of the content of the file that my user select, like how it is showed when accessing dropbox through the browser, how can I achieve that?   thank you.image.png

1 Reply 1

Greg-DB
Dropbox Staff

To access file content, you can use /2/files/download. Once you retrieve the content for any particular file, you can display the desired portion of the content in your UI.

 

By the way, that's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?