File preview not working on Visualforce page ( managed package )
Last updated 2018-01-06 ·Reference W-4416279 ·Reported By 10 users
File preview doesn't seem to work on Visualforce pages after Winter '18.
1) Create a content record and get the ContentVersionId after creation.
2) Create a sample VF page ( sample code provided below ) to preview the PDF content details.
VF Sample code :
<h2>should see PDF rendered here: </h2>
flashvars="shepherd_prefix=/sfc/servlet.shepherd&v=> *** ContentDocument.LatestPublishedVersionId ***>&mode=chatterfilepreview&in_tests=false"
width="300" height="500" align="middle" id="renditionLarge" quality="high" bgcolor="#f3f3f3" name="renditionLarge" allowscriptaccess="sameDomain" allowfullscreen="true"
<noembed><p>Flash file preview</p></noembed>
3) Create a managed package and add the VF page to it. Now install the package in another org.
3) Try to preview the above created VF page and you will see a blank screen.
Reach out to support and we can disable a perm in the backend to resolve the issue.
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.