Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to upload files and folders to a library using SharePoint Designer 2007 (on a WSS 3.0 SharePoint site).

It's giving me an error when I try to upload empty folders or folders that have an & in their name.

OS: Windows Vista, Windows Server 2008.

Can someone please assist?

share|improve this question

migrated from stackoverflow.com Apr 26 '12 at 15:34

4 Answers

There are certain characters that SharePoint does not allow in the filename. Unfortunately the ampersand character is one of them! Here is a list I've found, I'm not sure if there's an official list somewhere:

char[] InvalidFilenameCharacters = new[] { '\\', '/', ':', '*', '?', '"', '<', '>', '|', '#', '{', '}', '%', '~', '&' };
share|improve this answer
thank you!!!!! ! – aspguy Jun 24 '09 at 23:31
In addition to the characters Alex Angas listed, SharePoint also doesn't support files and folders with Unicode 0-31, 127, or 129-159 in their names (mostly unprintable / invisible). Empty folders can be added in SharePoint Designer using the New Folder button, but they're ignored during import operations. – Morbo Oct 22 '09 at 22:02

It's still true in SP2010 unfortunately - even though you can now upload, behind the scenes when you need to use functions such as System.Web.HttpUtility.UrlEncode(item_url) and SPEncode.UrlEncode(item_url), they will then unwantedly encode the forward slash as well as ignore ampersands, so it seems not worth the hassle. Same with SP2013 RTM too.

You can show any client/users it's not your fault currently by confirmation here: http://support.microsoft.com/kb/905231 (covers up to SP2010).

share|improve this answer

Even easier, go to the site in question, go to the library, change the view to explorer view("View:" dropdown at top right of document view pane).

Then you can drag and drop the folder/subfolder/documents directly into sharepoint...maintains structure and will even allow empty folders

share|improve this answer
thanks! i'm using forms based authentication! will it work. so far, fba has not been easy! – aspguy Jun 24 '09 at 19:35
good question, we don't have any form based, but it will take you second to prove out whether it works, try it! – curtisk Jun 24 '09 at 19:40
had to switch to windows! empty folders work but not folders with &! thanks! – aspguy Jun 24 '09 at 19:46
you can't get around the "&" issue, but you can at least retain your particular directory structure – curtisk Jun 24 '09 at 20:01

Here is a list of restrictions in SharePoint. The characters it lists as not being able to be used in a folder name are ~ # % & * { } \ : < > ? / | "

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.