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
    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?

You must be logged in to reply to this topic.