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.

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