File Naming Restrictions

SharePoint 2010

Last modified: February 02, 2011

Applies to: SharePoint Foundation 2010

Many Microsoft SharePoint Foundation development projects involve deploying various types of files to subfolders under the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE directory. This topic describes the restrictions on the kinds of characters that you can use in such file names.

For security reasons, SharePoint Foundation reads files in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE directory tree only if their names are composed of ASCII letters, numbers, periods, underscores, or dashes. In addition, file names cannot contain two or more consecutive periods. For example, the following are permitted file names:

  • AllItems.aspx

  • Dept_1234.doc

  • Long.Name.With.Dots.txt

The following are not permitted file names:

  • Cæsar.wav

  • File Name With Spaces.avi

  • Wow...ThisIsBad.rtf

  • 揵.htm