Salesforce File Type Security – Change PDF Behaviour To Download or Open In Browser

I learned something today I probably should have already known.  We have a number of PDF reports that used to download when the links were clicked, but were now opening up in the browser.  I started playing with the VF Page to alter this behaviour but soon discovered there’s actually a Salesforce setting that controls how different file types are handled.

Navigate to Administration Setup > Security Controls > File Upload and Download Security to access the following page:

Hopefully this saves you a bit of time in a similar situation!

Author: Matt

Matt is a seasoned Salesforce Developer / Architect, with implementations of Sales Cloud, Service Cloud, CPQ, Experience Cloud, and numerous innovative applications built upon the Force.com platform. He started coding in grade 8 and has won awards ranging from international scholarships to internal corporate leadership awards. He is 17x Certified on the platform.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.