Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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

Copy link
Copy link
@virgism3

Description

@virgism3
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.