Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
mrdk86
7 years agoNew member | Level 2
How can I display PDF in my React app
Hi, I am tryng to display pdf on my website but I try to use files_get_preview function, download but only think I can Fetch the data but not displaying in an embed/iframe. I have those erros; "uns...
mrdk86
7 years agoNew member | Level 2
Is not working I'll paste the code for any suggestion
dbx.filesListFolder({path: '/folder_name})
.then(function(response) {
if(response){
var a = []
response.entries.map((r, i) => {
console.log(r.name)
return a.push(r.path_display)
})
self.setState({name: a})
}
})
.catch(function(error) {
console.log(error);
});I tryed using filesDownload aswell but the same
<embed src={`https://www.dropbox.com/home/folder/${this.state.name}?raw=1`} width="800px" height="800px" />
any suggestion?
thanks!
Jay
Dropbox Community Moderator
7 years agoLooks like you’re referring to the API functions. I’ll move this thread to the correct section for the expert to assist you.
About 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!