upload_file: Uploads data into the users workspace

Description Usage Arguments Value

View source: R/user.R

Description

This function sends the file given by 'content' to the specified target location (relative file path in the user workspace) on the back-end.

Usage

1
2
3
4
5
6
7
upload_file(
  content,
  target,
  encode = "raw",
  mime = "application/octet-stream",
  con = NULL
)

Arguments

content

the file path of the file to be uploaded

target

the relative server path location for the file, e.g. where to find the file in the users workspace

encode

the encoding type used to upload the data, e.g. 'multipart','form','json','raw' ('raw' by default)

mime

mime type used in upload_file ('application/octet-stream' as a default)

con

authorized Connection (optional) otherwise active_connection is used.

Value

the relative file path on the server


flahn/openeo-r-client documentation built on Sept. 18, 2020, 5:16 a.m.