Upload file in api using invoke code (C# code)

Instead of this VB.Net code I want C# code to upload file in API. Because .Net code is not working in my case.

This is image of API I am using

Hi @Harsh_Shinde ,

If you want to invoke C# code, you will need to switch your project from Visual Basic to C#, if you’re using studio pro you can do it by modifying your project.json and reload it. Otherwise, you will need to create a new project based on C#.


As an alternative, you could simply use the http request activities provided in the webapi library



HTTP Request (uipath.com)

@Edwin_Barahona Thanks Edwin

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.