locked
Error Uploading file with Unblocked Extension RRS feed

  • Question

  • We need to be able to upload json files to our Site Collection Document Library.  I went into Centeral Admin Security and removed the ".json" extension from the blocked extensions list.  However, I am still getting blocked when trying to upload: "The following file(s) have been blocked by the administrator: SiteCollectionDocuments/james.json"

    Cany help is appreciated

    Thursday, October 1, 2015 2:38 PM

Answers

  • Hi Jamezn2013,

    Blocked file types Central are configured in Central Administration, are applied per web application, not globally throughout your farm. So, when you remove the extension, please make sure you have selected the correct web application.

    Please use PowerShell cmdlets to check all extensions on your web application:

    $WebApplication = Get-SPWebApplication <your web application>
    $Extensions = $WebApplication.BlockedFileExtensions
    write-host "Blocked File Types:"
    $Extensions | ForEach-Object {Write-Host $_}

    If json still exists, use this PowerShell cmdlets to remove it:

    $Extensions.Remove("json")
    $WebApplication.Update()
    write-host "Blocked File type DLG has been Removed"

    More information, please refer to:

    http://www.sharepointdiary.com/2010/02/blocked-file-types-in-sharepoint.html

    Best Regards,

    Wendy

    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by Victoria Xia Tuesday, October 13, 2015 9:49 AM
    • Marked as answer by Victoria Xia Monday, October 19, 2015 7:09 AM
    Friday, October 2, 2015 2:18 AM