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 oneliner:
Get-SPWebApplication | %{$_.AllowedInlineDownloadedMimeTypes.Add("application/pdf");$_.Update()}
Very useful PowerShell command! Thanks for sharing!
Meer informatie of zonder Powershell commando’s zie http://www.martijnjuurlink.nl/2012/12/pdf-en-sharepoint-2010.html π
Martijn,
De manier die jij beschrijft in je post was ook de manier hoe ik het eerst deed.
Het nadeel hiervan is dat Γ‘lle extensies rechtstreeks in de browser getoond worden, dit kan een security risk zijn i.v.m. uitvoeren scripts.
Voor meer informatie over Browser File Handling: http://social.technet.microsoft.com/wiki/contents/articles/8073.sharepoint-2010-and-2013-browser-file-handling-deep-dive.aspx
Reblogged this on Sutoprise Avenue, A SutoCom Source.
Thanks for sharing!
Wouldn’t this work as well?
http://gallery.technet.microsoft.com/office/Add-new-MIME-type-open-PDF-f6c57c32
Thanks
-Ron
Hi Ron,
Yes that script will work great aswell. Mine is just to add the pdf mimetype for all Web Applications. The script you pointed out gives you multiple options to add additional mimetypes to specific Web Applications
worked like a charm! tnx! π
Good to hear it worked! π