You are using an unsupported browser. Please update your browser to the latest version on or before July 31, 2020.
close
Home > Best Practices > Invalid file names and file types in OneDrive and SharePoint - Best Practices
Invalid file names and file types in OneDrive and SharePoint - Best Practices
print icon

Invalid file names and file types in OneDrive and SharePoint - Best Practices

Restrictions

Invalid characters

Applies to:  SharePoint and OneDrive

 

Certain characters have special meanings when used in file names in OneDrive, SharePoint, Windows and macOS, such as "*" for wildcards, and "\" in file name paths. If a file or folder you’re trying to upload to OneDrive contains any of the characters listed below, it may prevent files and folders from syncing. Rename the file or folder to remove these characters before you upload it.

 

Characters that aren't allowed in file and folder names  in OneDrive for home, OneDrive for work or school and SharePoint in Microsoft 365

Characters that aren't allowed in file and folder names in OneDrive for work or school on SharePoint Server 2013

" * : < > ? / \ |

(Leading and trailing spaces in file or folder names also aren't allowed.)

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

(Leading and trailing spaces in file or folder names also aren't allowed.)

 

Invalid file or folder names

Applies to:  SharePoint and OneDrive

These names aren't allowed for files or folders: .lockCONPRNAUXNULCOM0 - COM9LPT0 - LPT9_vti_desktop.ini, any filename starting with ~$.

Notes: 

  • "_vti_" cannot appear anywhere in a file name

  • "forms" isn't supported when the folder is at the root level for a library.

  • You can’t create a folder name in SharePoint that begins with a tilde (~).

 

Invalid or blocked file types

Applies to:  SharePoint and OneDrive

 

Temporary TMP files will not be synced to OneDrive. See OneDrive status stuck on "Sync pending" for more details.

Files that are used by your local computer, such as desktop.ini on Windows or .ds_store on macOS, don't normally sync. If these files do get uploaded to OneDrive during a migration, the sync app will delete the cloud copy and leave the local copy.

 

Outlook .PST files are supported, however they are synced less frequently compared to other file types to reduce network traffic. To prevent uploading .PST files from the OneDrive sync app, read Blocking syncing of specific file types. To move .PST files out of OneDrive, read How to remove an Outlook PST data file from OneDrive. If users enable PC folder backup (Known Folder Move) manually without the group policy, they will see an error if they have a .PST file in one of their known folders (e.g. Documents).

 

If you are a OneDrive for work or school user, some file types may be blocked on your organization’s SharePoint site. The list of blocked files will vary depending on your administrator.

 

For security reasons, a number of file names and extensions can't be uploaded since they are executable, used by SharePoint Server, or used by Windows itself. For more info, see Types of files that cannot be added to a list or library.

 

Limitations

File upload size

These limits apply to an individual file being uploaded or synced, not your total storage. For any file larger than a few GB, we recommend using the OneDrive sync app rather than the website upload feature.

 

OneDrive for home
OneDrive icon

OneDrive for work or school and SharePoint in Microsoft 365
OneDrive fro Business

100GB

100GB

 

For more detailed information on this topic on SharePoint and OneDrive:

https://support.microsoft.com/en-us/office/invalid-file-names-and-file-types-in-onedrive-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa

Feedback
0 out of 0 found this helpful

scroll to top icon