curl / Mailing Lists / curl-library / Single Mail


Re: Issues uploading file to NextCloud server

From: Daniel Stenberg via curl-library <>
Date: Fri, 10 Aug 2018 00:22:24 +0200 (CEST)

On Mon, 6 Aug 2018, Andy Pont wrote:

> The debug output on the console when I run the script manually returns with
> "HTTP/1.1 400 Bad Request”. The logging in the Nextcloud instance shows the
> request being submitted but fails with the error “BadRequest: expected file
> size XXXXX got 0”.
> I can’t work out where to go next to determine whether this is a
> configuration issue with Nextcloud or me being dumb in the request I am
> sending.

Are you supposed to be able to PUT to that location?


Received on 2018-08-10