cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more here.

Discuss Dropbox Developer & API

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

Render the content of dropbox file inside my web app

Render the content of dropbox file inside my web app

Saif Lajmi
Explorer | Level 4

how i can use api dropbox to render the pdf file inside my nextjs app using typscript i follow this github scripts https://github.com/dropbox/dropbox-sdk-js/ but i don't find any example about how can render dropbox file inside may nextjs app , i find upload and files listes function only ..??

2 Replies 2

Greg-DB
Dropbox Staff

To download a file using the JavaScript SDK, you would use the filesDownload method.

 

There's an example of using a content download method like this in TypeScript with this SDK here. That example happens to use sharingGetSharedLinkFile instead of filesDownload, but they work the same way to access the returned data; you would use a "path" parameter for filesDownload instead of "url" though.

Saif Lajmi
Explorer | Level 4

Thank you very much. Okay, I will try to implement it inside my NextJS app, and we will see. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Saif Lajmi Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?