Invalid characters in file or folder names or invalid file types in OneDrive for Business

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 on Office 365 and SharePoint 2013.

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

For security reasons, a number of file names and extensions can't be uploaded since they are executable, used by SharePoint, or used by Windows itself. Here's a few types that are blocked. For more extensive lists, see the links below.

You can't upload OneNote files, or files with a *.tmp or *.ds_store extension. Additionally, you can't upload desktop.ini, thumbs.db, or ehthumbs.db.

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. If your organization is running SharePoint Online, the default list of blocked files is fixed and can't be changed. To see a list of the default blocked files, see Types of files that cannot be added to a list or library.

For more information about restrictions and limitations, like size limits for syncing files, and character limits for files and folders, see Restrictions and limitations when you sync SharePoint libraries to your computer through OneDrive for Business.

Was this information helpful?

How can we improve it?

How can we improve it?

To protect your privacy, please do not include contact information in your feedback. Review our privacy policy.

Thank you for your feedback!