Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

FileUpload fails with MethodNotFoundException #149

@virgism3

Description

@virgism3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions