Overview
The M-Files app itself doesn't have a max path length, and path length in this context is the total number of characters of <File Path> + <File Name>. However, older versions of Windows limit the max path length to 260 characters. The solution to enable those longer paths in Windows are detailed here:
/article/How-to-Enable-Long-Path-for-M-Files
Sometimes you might encounter path errors despite that workaround in place.
Cause and Reason
The cause is that many applications still have their own individual max path length in place.
To prevent this from occurring as much as possible, M-Files does shorten long paths, specifically when the total length of the path exceeds 260 characters then M-Files will truncate the path.
So max path length errors can still occur if the individual app has a max character length that is below 260 characters, and the total path length from M-Files exceeds that lower limit but does not exceed 260 characters.
Solution
In this case if the individual app doesn't have a workaround similar to the Windows solution above, then you would need to either:
- Reduce the length of the file name.
- Reduce the length of the path. This can sometimes be done by changing the names of views or folders.
or
- INCREASE the total path length to get it over the 260-character threshold so that M-Files truncates the total length.
