Skip to contents

Upload a Local File to the Cloud

Usage

upload_file(
  file,
  target_path = "documents",
  user = nextcloud_user(),
  auth = nextcloud_auth()
)

Arguments

file

path to local file

target_path

path to folder on the cloud into which to upload the file

user

user name, by default taken from the environment variable "NEXTCLOUD_USER".

auth

authentication header as provided by kwb.nextcloud:::nextcloud_auth