I'm working on a Winform application which allows a user to upload documents to Onedrive for Business. Essentially you select a folder you want to upload, this creates all of the folders and then uploads the documents.
This ignores files with illegal extensions and renames any folders and files that contain illegal characters.
It seems to work ok but I get a 400 Bad Request, so I looked in to the length of the url. This appears to be fall with in the 260 limit unless I'm missing something? Items that fail are greater then 205 characters.
Is the following article still applicable to Sharepoint online: http://blogs.msdn.com/b/selvagan/archive/2009/12/06/unable-to-edit-files-uploaded-to-document-library-where-url-length-is-more-than-260-characters.aspx
Also is there any way I can get any detail information about a 400 Bad Request?
Is there any where on Microsoft that documents this for SharePoint Online, I've come across 2010 but nothing for SharePoint Online.
This is an example of an item that failed
https://sitename-my.sharepoint.com/personal/sitename_sitename_onmicrosoft_com/Documents/SharePoint
2013 Using the search REST service from an app for SharePoint/C_/SharePoint_2013_Using_the_search_REST_service_from_an_app_for_SharePoint.docx
After adding some more error handling I now get the following message:
The length of the URL for this request exceeds the configured maxUrlLength
value.