SharePoint 2013 errors for file uploads with special characters or wrong extension

%3CLINGO-SUB%20id%3D%22lingo-sub-1630142%22%20slang%3D%22en-US%22%3ESharePoint%202013%20errors%20for%20file%20uploads%20with%20special%20characters%20or%20wrong%20extension%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1630142%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%20When%20we%20upload%20a%20file%20to%20a%20SharePoint%20library%20with%20special%20characters%2C%20it%20gives%20an%20error%20%22File%20names%20can't%20contain%20the%20following%20characters%3A%20%26amp%3B%20%22%20%3F%20%26lt%3B%20%26gt%3B%20%23%20%7B%7D%20%25%20~%20%2F%20%5C.%22%20or%20if%20we%20upload%20a%20.exe%20file%2C%20it%20says%20%22Sorry%2C%20for%20some%20reason%20this%20document%20couldn't%20upload.%20Try%20again%20later%20or%20contact%20your%20administrator.%22%3C%2FP%3E%3CP%3EI%20want%20to%20know%20where%20these%20errors%20are%20coming%20from.%20I%20searched%20in%20all%20the%20resource%20files%20in%20the%2015%20hive%20but%20I%20dint%20find%20them.%20Please%20let%20me%20know%20where%20these%20error%20messages%20are%20coming%20from%20or%20how%20SharePoint%20is%20generating%20them.%20All%20I%20need%20to%20do%20is%20a%20little%20tweak%20in%20the%20wordings%20of%20those%20messages%20so%20it%20becomes%20clear%20for%20the%20user%20what%20they%20are%20doing%20wrong.%20And%20I%20know%20that%20it%20is%20not%20recommended%20to%20modify%20resource%20files%20as%20they%20will%20be%20overwritten%20after%20a%20new%20patch%20installation.%20But%20still%20there%20is%20a%20requirement%20so%20please%20do%20let%20me%20know%20the%20source%20of%20these%20messages.%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1630142%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2013%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
New Contributor

Hello. When we upload a file to a SharePoint library with special characters, it gives an error "File names can't contain the following characters: & " ? < > # {} % ~ / \." or if we upload a .exe file, it says "Sorry, for some reason this document couldn't upload. Try again later or contact your administrator."

I want to know where these errors are coming from. I searched in all the resource files in the 15 hive but I dint find them. Please let me know where these error messages are coming from or how SharePoint is generating them. All I need to do is a little tweak in the wordings of those messages so it becomes clear for the user what they are doing wrong. And I know that it is not recommended to modify resource files as they will be overwritten after a new patch installation. But still there is a requirement so please do let me know the source of these messages. Thanks

1 Reply
Highlighted
Hi, there are some security reasons, why those characters are not allowed in the filenames. You should not change because of some requirements which make your environment vulnerable to attacks. Also, you are not allowed to upload the executables since it is blocked in the central administration, you have to allow the executables to upload to the document library. I suggest you follow the best practice guidelines from Microsoft and recommend the customer to follow the same.