When trying to upload .cs, .java, .aspx, etc. files. with the Multiple Upload Documents window, these files fail even though these extensions are allowed by SharePoint. So, the problem comes from elsewhere. SharePoint is hosted with IIS which blocks certain types of files by default, especially all the files related to the development of a site (cs, aspx, config, …). You must enable these extensions in IIS configuration too.
- Open IIS Manager
- Select the site corresponding to SharePoint (by default, "SharePoint - 80")
- Double click on "Request Filtering"
- Select the desired extension and click "Remove"
There you go.
Do you have a question or a suggestion about this post? Contact me!