Embed optional parameters not working as documented?
We want to embed a file as view only (no ability to access original file) in an external site. The documentation here: https://box-content.readme.io/docs/box-embed documents an optional parameter:
view_file_only
Constrains the view within the widget to just a file with no actions. User cannot download, print, or see the folder in which the file resides, even if the user has access.Can be yes or no (default).
But when we do this it only appears to disable the download button in the frame. User can still access the box file link by clicking any of the share icons, file name and box logo.
A previous solution to a very similar request was offered by back in 2016, but this solution will not work for us. Is there another way to disable this header and all buttons/links? We just want to view the file with next/prev page and fullscreen controls only.
Thanks!
-
Hey ,
The view_file_only is no longer a supported parameter for the Embed Widget unfortunately. The documentation link you provided isn't our "live" site, and shouldn't be considered a source of truth. The correct location (with supported params) is:
https://developer.box.com/docs/box-embed
This has in fact been raised up before though. While it doesn't have a ton of voters right now, the best thing to do would be to add support for this request here:
As a technical workaround, you could explore implementing the underlying javascript library that the embed widget uses:
https://github.com/box/box-content-preview
It's definitely more effort, but does give you the additional flexibility that the Embed Widget doesn't.
Hope that helps!
Thanks,
Jason
サインインしてコメントを残してください。
コメント
1件のコメント