Types of files that cannot be added to a list or library

There are certain types of files that you cannot upload to a SharePoint list or a library. By default, SharePoint blocks certain file types.

For example, if .asp is on the list of blocked file extensions, a file called "newpage.asp" is blocked. Variations of a file extension are also blocked. The following list shows different ways of representing the same file, all of which are blocked if the .hta extension is on the list of blocked file extensions.

  • filename.hta
  • filename.hta.
  • filename.hta.{3050F4D8-98B5-11CF-BB82-00AA00BDCE0B}
  • filename.hta::$DATA

The list of files that is blocked for SharePoint Online is different from the list of files that is blocked for on-premises deployments of SharePoint Foundation or SharePoint Server.

In this article


Blocked file types for SharePoint Online

The list of blocked file types cannot be changed for a SharePoint Online site.

File extension File type
.ashx ASP.NET Web handler file. Web handlers are software modules that handle raw HTTP requests received by ASP.NET.
.asmx ASP.NET Web Services source file
.asp Active Server Pages
.aspq Active Server Pages
.axd ASP.NET source file
.cshtm ASP.NET web page
.chtml ASP.NET web page
.json JavaScript Object Notation file
.rem Blackberry Encrypted Data file
.shtm HTML file that contains server-side directives
.shtml HTML file that contains server-side directives
.soap Simple Object Access Protocol file
.stm HTML file that contains server-side directives
.svc Windows Communication Foundation (WCF) service file
.vbhtm ASP.NET Razor web page
.vbhtml ASP.NET Razor web page
.xamlx Visual Studio Workflow service file

Blocked file types for SharePoint Foundation and SharePoint Server

For on-premises deployments of SharePoint Foundation or SharePoint Server, a server administrator can add or remove file types from the list of blocked file types. For more information about how to work with blocked file types for SharePoint Server sites, see one of the following articles, depending on the version of SharePoint you have:

The file types that are blocked by default are shown in the following table.

File extension File type
.ade Microsoft Access project extension
.adp Microsoft Access project
.asa ASP declarations file
.ashx ASP.NET Web handler file. Web handlers are software modules that handle raw HTTP requests received by ASP.NET.
.asmx ASP.NET Web Services source file
.asp Active Server Pages
.bas Microsoft Visual Basic class module
.bat Batch file
.cdx Compound index
.cer Certificate file
.chm Compiled HTML Help file
.class Java class file
.cmd Microsoft Windows NT command script
.com Microsoft MS-DOS program
.config Configuration file
.cnt Help Contents file
.cpl Control Panel extension
.crt Security certificate
.csh Script file
.der DER Certificate file
.dll Windows dynamic-link library
.exe Executable file
.fxp Microsoft Visual FoxPro compiled program
.gadget Windows Gadget
.grp SmarterMail group file
.hlp Help file
.hpj Hemera Photo Objects Image File
.hta HTML program
.htr Script file
.htw HTML document
.ida Internet Information Services file
.idc Internet database connector file
.idq Internet data query file
.ins Internet Naming Service
.isp Internet Communication settings
.its Internet Document Set file
.jse JScript Encoded script file
.json JavaScript Object Notation file
.ksh Korn Shell script file
.lnk Shortcut
.mad Shortcut
.maf Shortcut
.mag Shortcut
.mam Shortcut
.maq Shortcut
.mar Shortcut
.mas Microsoft Access stored procedure
.mat Shortcut
.mau Shortcut
.mav Shortcut
.maw Shortcut
.mcf Multimedia Container Format
.mda Microsoft Access add-in program
.mdb Microsoft Access program
.mde Microsoft Access MDE database
.mdt Microsoft Access data file
.mdw Microsoft Access workgroup
.mdz Microsoft Access wizard program
.ms-one-stub Microsoft OneNote stub
.msc Microsoft Common Console document
.msh Microsoft Agent script helper
.msh1 Microsoft Agent script helper
.msh1xml Microsoft Agent script helper
.msh2 Microsoft Agent script helper
.msh2xml Microsoft Agent script helper
.mshxml Microsoft Agent script helper
.msi Microsoft Windows Installer package
.msp Windows Installer update package file
.mst Visual Test source files
.ops Microsoft Office profile settings file
.pcd Photo CD image or Microsoft Visual Test compiled script
.pif Shortcut to MS-DOS program
.pl
.prf System file
.prg Program source file
.printer Printer file
.ps1 Windows PowerShell Cmdlet file
.ps1xml Windows PowerShell Display configuration file
.ps2 Windows PowerShell Cmdlet file
.ps2xml Windows PowerShell Display configuration file
.psc1 Windows PowerShell Console file
.psc2 Windows PowerShell Console file
.pst Microsoft Outlook personal folder file
.reg Registration entries
.rem ACT! database maintenance file
.scf Windows Explorer command file
.scr Screen saver
.sct Script file
.shb Windows shortcut
.shs Shell Scrap object
.shtm HTML file that contains server-side directives
.shtml HTML file that contains server-side directives
.soap Simple Object Access Protocol file
.stm HTML file that contains server-side directives
.svc Windows Communication Foundation (WCF) service file
.url Uniform Resource Locator (Internet shortcut)
.vb Microsoft Visual Basic Scripting Edition (VBScript) file
.vbe VBScript Encoded Script file
.vbs VBScript file
.vsix Visual Studio Extension
.ws Windows Script file
.wsc Windows Script Component
.wsf Windows Script file
.wsh Windows Script Host settings file
.xamlx Visual Studio Workflow service file

Top of Page Top of Page

Related tasks

Upload files or create files in a library

 
 
Applies to:
OneDrive for Business, SharePoint admin center, SharePoint Foundation 2013, SharePoint Foundation 2013 Central Administration, SharePoint Online Enterprise (E1), SharePoint Online Enterprise (E3 & E4), SharePoint Online Midsized Business, SharePoint Online operated by 21Vianet - Enterprise (E1 & E2), SharePoint Online operated by 21Vianet - Enterprise (E3 & E4), SharePoint Online operated by 21Vianet - Midsized Business, SharePoint Online operated by 21Vianet - Small Business, SharePoint Online Small Business, SharePoint operated by 21Vianet - admin center, SharePoint Server 2013 Enterprise, SharePoint Server 2013 Standard, SharePoint Foundation 2010 , SharePoint Online for enterprises, SharePoint Online for professionals and small businesses , SharePoint Server 2010