0

hi we cannot open the items in document library and must save them first then open it in sharepoint2010 what should we do

closed as unclear what you're asking by Waqas Sarwar MVP, Karthik Jaganathan, Asad Refai, Robert Lindgren Jun 27 '16 at 6:23

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

0

You can either add PDF as allowed MIME type (recommended) or set File Handling to Permissive alltogether (not recommended). Here is an article that covers this topic: SharePoint: Browser File Handling Deep Dive

And here's the Powershell script that allows you to add a MIME type to the list of allowed ones for a specific web application (taken from the article):

$mimeType = "application/pdf"             
Get-SPWebApplication |             
foreach-object             
{             
    # If the MIME Type is not already on the allowed list for the Web Application             
    if(!$_.AllowedInlineDownloadedMimeTypes.Contains($mimeType))             
    {             
        # Add the MIME type to the allowed list and update the Web Application             
        $_.AllowedInlineDownloadedMimeTypes.Add($mimeType)             
        $_.Update()             
        Write-Host Added $mimeType to the allowed list for Web Application $_.Name             
    }             
    else             
    {             
        # The MIME type was already allowed - can't add. Inform user             
        Write-Host Skipped Web Application $_.Name - $mimeType was already allowed             
    }             
}

Please note that *.pdf is considered as potentially dangerous, that's why it won't open in the browser by default.

Not the answer you're looking for? Browse other questions tagged or ask your own question.