Skip to content
Advertisement

“Box Embed” type preview for Dropbox in PHP/java-script based website

i have integrated Dropbox with php based application using their API. Files are uploaded and then shared URL is stored in PHP application.

Show any file preview: I did some R&D and find out that using shared URL in iframe can display preview. But iframe cant be responsive and also this is proper way to preview any uploaded file in application?

Advertisement

Answer

  1. If you want to get the preview data for a file and then control how it’s displayed, you can use /2/files/get_preview.

  2. Dropbox doesn’t offer a way to do this, but we’ll consider it a feature request.

EDIT:
Dropbox has released a preview of a new pre-built component for embedding files and folders! You can find more information about the Dropbox Embedder in our blog post here:

https://dropbox.tech/developers/new-file-and-folder-embedder-launched-in-preview

There’s also a chance to win a $200 Amazon gift card if you fill out a survey about the new Dropbox Embedder. Check out the blog post above for more information.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement