Hi previously i have asked for a question and i have sorted the answer for it Upload a file in SharePoint server from a local machine connected through LAN using c# .But unfortunately the files are not getting uploaded into Shared Documents (ie) i want the file to get upload under the shared document of the logged in user (eg) in this path
but now it not getting uploaded in the above path , its getting uploaded in
http://10.0.0.13:48487/Shared%20Documents and also i can only able to access the files in above path by manually entering the URL in address bar .!
I want my file to get upload under the personal/my content/shared Document of the logged in user .!
NOTE : i was pointing the shared socument in c# while uploading the file using
SP.List documentsList = clientContext.Web.Lists.GetByTitle("Shared Document");
If i tried giving the full url in cliecntContext its throwing exception as
Cannot contact site at the specified URL http://sharepoint/my/personal/admin/Shared%20Documents/Forms/AllItems.aspx. There is no Web named "/my/personal/admin/Shared
ClientContext
? Because if you give your my site URL in it, it will only upload to thatShared Document
library only.ClientContext
will not find any web if you give full url. You need to give url tilladmin
, for examplehttp://sharepoint/my/personal/admin
. Not the full url with document library name.