You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Mark M.130
7 years agoExplorer | Level 4
API command to view file content in web browser
Hi, I'd like to integrate Dropbox deeply into a web app, and one of the biggest required features is to be able to view the contents of the file in a HTML frame, much like the corrent dropbox.com...
- 7 years agoThe endpoint names in my previous reply are links to the documentation which has more information about each one, but in short:
- download: returns the original file data
- get_preview: returns the data for an HTML or PDF preview for files of supported document types
- get_thumbnail: returns the data for a jpeg or png thumbnail for files of supported image types
Mark M.130
Explorer | Level 4
Thanks Greg for the quick response. To clarify, what's the difference between preview, thumbnail and download?
Greg-DB
7 years agoDropbox Staff
The endpoint names in my previous reply are links to the documentation which has more information about each one, but in short:
- download: returns the original file data
- get_preview: returns the data for an HTML or PDF preview for files of supported document types
- get_thumbnail: returns the data for a jpeg or png thumbnail for files of supported image types
- download: returns the original file data
- get_preview: returns the data for an HTML or PDF preview for files of supported document types
- get_thumbnail: returns the data for a jpeg or png thumbnail for files of supported image types
- Mark M.1307 years agoExplorer | Level 4
Thanks! Sounds like preview is what I'd need.
- milankj2 years agoExplorer | Level 3
Did you get to view ur file in web using preview?
- Greg-DB2 years agoDropbox Staff
milankj The /2/files/get_preview endpoint is still a valid way to get preview data for files of supported file types. Apps can use that returned data in their UI as needed. If you have any questions or issues regarding using the API, feel free to open a new thread with the relevant details.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 9 hours agoIf 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 or Facebook.
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!