Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Metadata Method: Files(string path,stream filestream) #21

Description

I have been trying to call this method - Files(path, filestream). Following the example from the documentation. Everything else works, file upload, create folder, delete file, delete folder, even getting the list of files and folder in the dropbox account.

However this specific call, following the exact example throws this error:
"object reference not set to an instance of an object"

When I debug inside the restapi code. I realize the Stream has an Error Exception Message:
"timeouts are not supported on this stream"

in this specific line of code it fails in the Metadata : IMetadata class.

 public  MetaData Files(string path, Stream targetStream, string rev = null, string asTeamMember =     null, CancellationToken cancellationToken = default(CancellationToken))
    {
        MetaData fileMetadata = null;
        using (var restResponse =  _requestExecuter.Execute(() => _requestGenerator.Files(_options.Root, path, rev, asTeamMember), cancellationToken: cancellationToken))
        {  ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions