Quantcast
Channel: Nico Martens – Blog by Nico Martens
Viewing all articles
Browse latest Browse all 13

Add PDF mimetype for all Web Applications one-liner

$
0
0

By default, PDF files cannot be opened directly from SharePoint 2010/SharePoint 2013.

To add the PDF mimetype to all Web Applications (Instead of doing it seperately for each Web Application), you can use the following one-liner:

Get-SPWebApplication | %{$_.AllowedInlineDownloadedMimeTypes.Add("application/pdf");$_.Update()}


Viewing all articles
Browse latest Browse all 13

Trending Articles