File Upload on SharePoint Portal through Invoke-RestMethod

This topic contains 0 replies, has 1 voice, and was last updated by  Nitesh Parmar 6 months, 2 weeks ago.

  • Author
  • #79145

    Nitesh Parmar

    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 "'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.