Skip to content

Streaming upload does not work #88

Open

Description

@prokopst

It seems that streaming upload does not work, most likely because the file is reset only once. This is related to #87, because the data is sent three times.

For example code similar to this snippet does not work, it's always stuck:

session = Session(auth=HttpNtlmAuth(username, password))
with open("blabla.txt") as file:
    session.put(url="https://webdav-server/", data=file, timeout=10)

pip freeze says:

requests==2.11.1
requests-ntlm==1.0.0

Activity

  1. Lukasa commented on Dec 16, 2016

    @Lukasa
    Member

    Yeah, this looks like a bug. I think we'd need to use some of the code in the newer versions of Requests for seeking back the body if possible.

    I'm on holiday for the rest of the year which means that I won't be able to get to this until next year, but I am happy to review patches if anyone feels like tackling this.

  2. nateprewitt commented on Dec 27, 2016

    @nateprewitt

    It looks like this would be a pretty simple fix with rewind_body from 2.12.4. Are we alright requiring the latest version of requests being the minimum version for this module? If so, I can look into integrating it.

  3. ofek commented on Jun 26, 2018

    @ofek

    Has this been fixed?

  4. kamikaze commented on Jul 3, 2018

    @kamikaze

    it seems that this project is abandonned

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions