Tip |
---|
This guide shows you how to shorten a file path in Windows. ITS recommends that you shorten file paths (edit file and folder names) and keep the file/folder names as direct and “to the point” as possible. |
When moving files to, or creating new files and folders within SharePoint, you may receive an error message claiming the “file path exceeds the limit”. This guide shows the technical explanation of file paths, so that you may apply this knowledge to your file organization, both online and on your computer.
The file path of a file contains the file’s name and the name of every parent folder. A “parent folder” is a folder that contains the file in question. An example file path (finding a file within parent folders) is shown below. You can see the file path generating in the address bar above the folders.
...
For example, you may have a picture saved in your default Windows Pictures folder on your computer named “vacation group photo Dec25th.jpg” The file path of this picture file is C:\Users\daniel\Pictures\camera\vacations\Dec_2012_Vacation_to_Denver\lodge\vacation_group_photo_Dec25th2012.jpg
. This file path contains 112 characters and 7 parent folders. You can see the name of your hard drive C:\
and then the name of every folder you need to enter in order to find your file.
...
...
The limit for a file or folder name is 255 characters.
...
Try to exclude spaces from file and folder names. A space in a file path will be replaced by %20
in SharePoint, which is now 3 characters instead of a single space as you see it. Try using the underscore _
in place of a space.
...
Start with renaming the folders containing the file; this change will help every folder and file below it. Next, try to shorten the file name.
Fixing the above example
I can shorten the picture’s name, since there is repeated information.
group_photo
does not duplicate any information and contains 11 characters instead of 32. The date-taken information is included within the file’s metadata; it does not need to be in the name.I can remove the “camera” folder. By moving all the sub-folders of
camera
toPictures
. I will save 7 characters in all future sub-folders.Looking at the remaining file path, the logical parent folder to edit is “Dec 2012 Vacation to Denver” I can change this to
Denver2012
orDenver_Dec2012
to save 17 and 13 characters respectively.
Fixed file path: C:\Users\daniel\Pictures\vacations\Denver2012\lodge\group_photo.jpg
with 67 characters.
I’m receiving file path errors from SharePoint/OneDrive
If you are receiving popup notifications about file path length issues, please read the popup to identify the file path.
Tip |
---|
Take a screenshot of the popup, or use your phone to take a picture. |
Navigate to s.uconn.edu/onedrive if the error is in your OneDrive and s.uconn.edu/sharepoint and if the error is in a SharePoint site.
If you’re navigating to SharePoint, next click on the SharePoint site in questionthat is giving you the error.Click on Documents in the lefthand menu.
Using the picture you took of the popup, navigate to the file path and begin to shorten it using the instructions on this guide.
Why do I get an error if the path works in SharePoint? These errors are from the computer’s file path limit, which is usually 260 characters by default; SharePoint can handle longer file paths than the default Windows settings.
...
Related Articles
Filter by label (Content by label) | ||||||||
---|---|---|---|---|---|---|---|---|
|