Skip to content

Instantly share code, notes, and snippets.

@spyesx
Created September 14, 2020 07:52
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spyesx/e279a43725989e8adc02526216c02226 to your computer and use it in GitHub Desktop.
Save spyesx/e279a43725989e8adc02526216c02226 to your computer and use it in GitHub Desktop.
Upload a file to Nextcloud with curl
# source: https://docs.nextcloud.com/server/19/user_manual/files/access_webdav.html#accessing-files-using-curl
curl -u USERNAME:PASSWORD -T /path/to/file https://my.nextcloud.tld/remote.php/dav/files/USERNAME/path/to/directory/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment