File Upload on SharePoint Portal through Invoke-RestMethod

This topic contains 0 replies, has 1 voice, and was last updated by  Nitesh Parmar 2 weeks, 2 days 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?

You must be logged in to reply to this topic.