upload_file: Upload data into the users workspace

View source: R/user.R

upload_fileR Documentation

Upload data into the users workspace

Description

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

Usage

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


openeo documentation built on Nov. 17, 2022, 5:07 p.m.