Sdílet prostřednictvím


File Naming Restrictions

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.

File Name Restrictions

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