3

We have a SharePoint online tenant, and i need to know what is the maximum length of the folders/sub-folders and file we can have, is there is any? for example can i add a file inside this path:-

>>Main folder >> Sub folder1 >> ...sub folder100 >> Filename.txt ?

3

The maximum length is 400 encoded characters in the URL. There is no restriction on the number of folders/subfolders given it doesn't exceed this limit.

Invalid file names and file types in OneDrive, OneDrive for Business, and SharePoint

3
  • thank for the reply, but i were reading this article social.technet.microsoft.com/Forums/ie/en-US/… and it says that the maximum for any folder path is 128?
    – John John
    May 3 '20 at 15:45
  • Even that is incorrect, in SharePoint Server 2016 the limit is 260 characters. SPO/SharePoint Server 2019 use the 400 character limit, per the official article.
    – Trevor Seward
    May 3 '20 at 15:46
  • Actually, the linked article says (at least now) that the maximum DECODED file path is 400 characters (with caveats about which part of the path are included). There is no mention of the length of encoded path length. Sep 9 at 19:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.