Skip to content
Discussion options

You must be logged in to vote

I had a look and could reproduce your problem.

Unfortunately, DAVx5 doesn't know the file size in prior of the upload. So okhttp (the HTTP library that DAVx5 uses) uploads the file without naming a file size and using chunked transfer encoding (or its HTTP/2 equivalent: data frames). This is correct and must be supported by servers.

The problem can be reproduced with curl:

curl -H 'Transfer-Encoding: chunked' -H 'Content-Type: image/png' --compressed -vu [email protected]:webdav-app-pw -T some-image.png https://magentacloud.de/remote.php/webdav/some-image.png      # note that Transfer-Encoding: chunked is not actually sent for HTTP/2
> PUT /remote.php/webdav/some-image.png
…
< HTTP/2 204 

(…

Replies: 6 comments 13 replies

Comment options

You must be logged in to vote
10 replies
@albrechtd
Comment options

@rfc2822
Comment options

Answer selected by rfc2822
@albrechtd
Comment options

@albrechtd
Comment options

@rfc2822
Comment options

@muelleel
Comment options

Comment options

You must be logged in to vote
1 reply
@exstntlmsnthrp
Comment options

Comment options

You must be logged in to vote
2 replies
@albrechtd
Comment options

@rfc2822
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
9 participants