积极答复者
SharePoint 上传共享文档中带有#号或者&号的问题

问题
-
SharePoint 上传共享文档中带有#号或者&号不能上传。我不知道在sharepoint中的什么位置能把这个限制给去了。
我这边有很多文档。大量的使用了#,&号。不知如何解决。
- 已编辑 Anson_Chen_ 2012年4月30日 4:32 错字
答案
-
Hi czseng,
在SharePoint中上传文档的文档名是不能包含“#”、”&“之类的特殊字符的,详细请参看:
http://marcellotonarelli.wordpress.com/2011/05/02/file-name-length-and-character-restrictions-for-sharepoint/
所以你最好先更改文件名后再上传,鉴于你有大量包含特殊字符名的文档,我建议你先写一个批量替换特殊字符的小程序进行替换,用c#可以很容易实现:
c#获取文件夹所有文档:http://weblogs.asp.net/israelio/archive/2004/06/23/162913.aspx
c#重命名文档:http://www.aspnettutorials.com/tutorials/file/file-renfile-aspnet2-csharp.aspx
Thanks,
Lhan Han- 已标记为答案 Lhan HanModerator 2012年5月3日 2:12
全部回复
-
Hi czseng,
在SharePoint中上传文档的文档名是不能包含“#”、”&“之类的特殊字符的,详细请参看:
http://marcellotonarelli.wordpress.com/2011/05/02/file-name-length-and-character-restrictions-for-sharepoint/
所以你最好先更改文件名后再上传,鉴于你有大量包含特殊字符名的文档,我建议你先写一个批量替换特殊字符的小程序进行替换,用c#可以很容易实现:
c#获取文件夹所有文档:http://weblogs.asp.net/israelio/archive/2004/06/23/162913.aspx
c#重命名文档:http://www.aspnettutorials.com/tutorials/file/file-renfile-aspnet2-csharp.aspx
Thanks,
Lhan Han- 已标记为答案 Lhan HanModerator 2012年5月3日 2:12