0

I would like to view trusted PDF or HTML files directly in browser without downloading them.

Is there a way to activate browser view from any PnP library (SharePointPnPPowerShell say)? The examples I came across (How do I prevent Sharepoint from asking to download html files to my local machine? or Adding PDF and other MIME Types to the Browser File Handling property ) use SPWebApplication.AllowedInlineDownloadedMimeTypes Property from SharePoint Client Components SDK, I guess.

Is there a simpler way to do it?

Thanks

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.