Using DropNet 1.10.23.0 RestSharp 105.1.0.0
On UploadFile getting:
{"Method not found: 'RestSharp.IRestRequest RestSharp.RestRequest.AddFile(System.String, Byte[], System.String)'."}
{"Method not found: 'RestSharp.IRestRequest RestSharp.RestRequest.AddFile(System.String, System.Action`1<System.IO.Stream>, System.String)'."}
Downloaded DropNet sources and changed in methods:
public RestRequest CreateUploadFileRequest(string path, string filename, byte[] fileData, string root, bool overwrite, string parent_revision)
public RestRequest CreateUploadFileRequest(string path, string filename, Stream fileStream, string root, bool overwrite, string parent_revision)
request.AddFile("file", fileData, filename);
Added parameter, and it started working.
request.AddFile("file", fileData, filename,"");
DropNet 1.10.23.0 not compatable with RestSharp 105.1.0.0?
Also FileUploadPUT returns empty metadata.