19 March, 2011

File Name, Length, Size and Invalid Character Restrictions and Recommendations


New Blocked File Types

If you were familiar with the WSS 2.0 list, there are some new Blocked File Types: .asmx, .rem, .resx, .soap, or .ashx.  If they existed before upgrade they are no longer visible or cannot be opened after upgrade.  These file extensions have been added to the list of blocked file extensions.

You now have the ability to make differences between farm wide blocked file types and web application blocked file types.  If you want to un block it, it needs to be removed at both farm and application levels, but you can add specific blocked files for a single web application.  The farm level block list for example will override anything removed at the web application level.

My most commonly removed blocked files are .chm (help files), .lnk (url link), .url (url link) 

My most commonly added blocked files are .mp3 (audio), .pst (mail), .vhd (virtual hard drive)


Site Names

-In WSS Site Names may not contain the following characters: \ / : * ? " < > | # { } % & " ~ +
-You cannot start a site name, sub site name, or a site group name with an underscore (_) character or with the period character (I recommend avoiding the (_) underscore in site names)
-You cannot use the period character consecutively in the middle of a site name
-You cannot use the period character at the end of a site name

File Names

-Invalid characters: " # % & * : < > ? \ / { | } ~ 
-Cannot be longer than 128 characters
-You cannot use the period character consecutively in the middle of a file name
-You cannot use the period character at the end of a file name
-You cannot start a file name with the period character


Folder Names

-You cannot use the following characters anywhere in a folder name or a server name:  ~ # % & * { } \ : < > ? / | "
-Cannot be longer than 128 characters
-You cannot use the period character consecutively in the middle of a folder name
-You cannot use the period character at the end of a folder name
-You cannot start a folder name with the period character

Max File Upload/Download Sizes

The default max single file upload size is 50 MB by default for a web application.  

Microsoft IT limits their environment at 100 MB, and the maximum that the product itself can handle or support is 2GB which is essentially a SQL limit.  By setting the limit to blank will essentially support what SQL will support.

Increase the maximum upload size

1.  Click Start, point to All Programs, point to Administrative Tools, and then click SharePoint Central Administration.
2.  Under Virtual Server Configuration, click Configure virtual server settings.
3.  On the Virtual Server List page, click the virtual server you want to change.
4.  On the Virtual Server Settings page, under Virtual Server Management, click Virtual server general settings.
5.  Under Maximum upload size, type the maximum file size (in MB) that you want to allow to be uploaded.
6.  Click OK.

1. Get into the SharePoint Central Administration Site
2. Select "Application Management"
3. Under the "SharePoint Web Application Management" section select "Web Application General Settings"
4. Change the "Maximum Upload Size"

If IIS is timing out when you upload large files, you can configure the Connection timeout setting in IIS to allow more than the default 120 seconds (2 minutes).

Tune the IIS connection timeout

1.    Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
2.    Right-click the virtual server you want to configure, and then click Properties.
3.    Click the Web Site tab.
4.    In the Connections section, in the Connection timeout box, type the number of seconds you want IIS to wait before timing out.
5.    Click OK.

No comments:

Post a Comment

Your feedback is always appreciated. I will try to reply to your queries as soon as possible- Amol Ghuge

Note: Only a member of this blog may post a comment.