File Upload on SharePoint Portal through Invoke-RestMethod

This topic contains 0 replies, has 1 voice, and was last updated by  Nitesh Parmar 3 months, 1 week ago.

  • Author
    Posts
  • #79145

    Nitesh Parmar
    Participant

    I am trying to upload one file on SharePoint portal with the help of Invoke-RestMethod command but it is not working

    Invoke-RestMethod -method post -Credential "Nitesh.Parmar" -uri "https://sharepoint.abc/sites/IS/web/GetFolderByServerRelativeUrl('ActiveDirectoryteam/Audit Listings 2016')/files/add(overwrite=true,url='Testfile')" -infile C:\Test.txt

    Can somebody help with this?

The topic ‘File Upload on SharePoint Portal through Invoke-RestMethod’ is closed to new replies.