Invalid file or folder name characters

Certain characters have intrinsic meanings when used in filenames in SharePoint and Windows, such as "*" for wildcards, or "\" as a directory separator. If a file or folder you’re trying to upload to OneDrive for Business contains any of the characters listed below, rename the file or folder to remove these characters before trying to upload. The list of invalid characters is different for OneDrive for Business on Office 365 vs. SharePoint on-premises.

Invalid file or folder name characters in OneDrive for Business on Office 365, SharePoint Online, and SharePoint Server 2016

Invalid file or folder name characters in OneDrive for Business on SharePoint 2013

" # % * : < > ? / \ |

~ " # % & * : < > ? / \ { | }.

Note: Windows will typically block "<>*/ \ | when you try to rename a file with these characters.

Invalid or blocked file types

There are no blocked files in OneDrive for Business on Office 365.

For security reasons, a number of file names and extensions can't be uploaded since they are executable, used by SharePoint on-premises, or used by Windows itself.

Additionally, you can't upload types of files that are blocked on the SharePoint site. If your organization is running SharePoint Server, the list of blocked files may vary depending on what your administrator sets up.