How to copy file using Rest API and javascript in Sharepoint 2013 between site and subsite
问题 I need to copy file between document libraries. Library A is located in one site and Library B is located in subsite. I know how to copy file between libraries on the same level but the problem is with copying between different level. The code I use to copy file between libraries on the same level. $.ajax({ url : "http://xxx/PWA/_api/web/folders/GetByUrl('/PWA/CopyFromLibrary')/Files/getbyurl('Import.csv')/copyTo(strNewUrl = '/PWA/TargetLibrary/Import.csv',bOverWrite = true)", method: 'POST',