Friday, January 23, 2009

File name and folder name restriction

Scenario:
I was trying to upload a file in a document library and got following error.

Error : The specified file or folder name is too long. The URL path for all files and folders must be 260 characters or less (and no more than 128 characters for any single file or folder name in the URL). Please type a shorter file or folder name.

Solution:
Error is self explanatory.SharePoint has file name / folder name and Url length limitation. So better have small names and avoid spaces in naming list / document libraries and file names also. Each space get encoded to %20 and occupy three characters.

0 comments: