File preview feature

New post


1 comment

  • mschwartz

    Hey  - thanks for reaching out. There are two ways you can do this. 


    1. The first is to embed the file preview as an iframe. Box allows you to obtain a URL that you can use to display a file within an iframe. You can find that method in the Java SDK here:
    2. The second (and more robust) is to use the Box Content Preview UI Element, which is a Javascript library for displaying file previews in the client. Using Content Preview, you can initialize the library and provide an access token (in this case, your developer token) and a file ID and then a file preview will display. You can see more details for using Box Content Preview here:

    Please let me know if you have any additional questions! 



    Comment actions Permalink

Please sign in to leave a comment.