Using
sfc/servlet.shepherd/version/download/{!id}
in URL to download PDF files from ContentVersion in a public site.
Is there anyway to get a PDF file to open in a browser instead of Downloading it after clicking the URL.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityUsing
sfc/servlet.shepherd/version/download/{!id}
in URL to download PDF files from ContentVersion in a public site.
Is there anyway to get a PDF file to open in a browser instead of Downloading it after clicking the URL.
This was actually solved by setting the pdf filetype to 'Execute in Browser' from Setup -> Security Controls -> File Upload and Download Security