C# sample code upload file by Rest API

I have a difficulty get c# code to upload file with Rest API. Ideally it will upload the file as a stream so there will be no surprise when dealing with large file. Can someone share some sample code please? Thank you.

Comments

  • Kyle_Swidrovich
    Kyle_Swidrovich E Community Moderator

    There’s no streaming interface in the REST API at this time.

    It’s a basic form post operation.

    The file parameter contains the raw content of the file, just as an <input type=”file”> element would if you built an HTML form.

     

    Kyle