cozy / cozy-stack

Simple, Versatile, Yours
https://docs.cozy.io/en/cozy-stack/
GNU Affero General Public License v3.0
1.11k stars 137 forks source link

Fix uploading files to NextCloud via WebDAV #4420

Closed nono closed 3 weeks ago

nono commented 1 month ago

The HTTP request to NextCloud was made with Transfer-Encoding: chunked, because of the way the Content-Length was set. But it looks like NextCloud doesn't support that, and files were created empty. We can avoid that by setting request.ContentLength.