Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

.NET SDK - upload file with versioning

Answered
New post

Comments

2 comments

  • Murtza

     Upload File and Upload File Version are implemented as different methods in the .NET SDK. Here's the method in the .NET SDK to upload a new file version. There shouldn't be any restrictions for a developer account to use the file version endpoint. 

    0
    Comment actions Permalink
  • rbratton

    Aha!  I now see where I was going wrong.  I was building another BoxFileRequest and only FilesManager.UploadAsync needed that.  The FilesManager.UploadNewerVersionAsync just needs the file name, file ID, and the file contents as a stream (as a minimum), but no request.

     

    Thanks much!

    0
    Comment actions Permalink

Please sign in to leave a comment.