Skip to contents

Uploads path to the active base and returns the SeaTable file object (a named list with name, size, type and url) ready to be written into a file-typed cell via hb_update_rows() or hb_attach_file().

Usage

hb_upload_file(client, path, ..., relative_path = "files")

Arguments

client

A harbour_client.

path

Local file path. Must exist.

...

These dots are for future extensions and must be empty.

relative_path

Optional path on the SeaTable side; defaults to "files".

Value

A named list describing the uploaded asset.

Examples

if (FALSE) { # interactive()
client <- hb_client()
hb_upload_file(client, "report.pdf")
}