Convenience: uploads path then writes it into the given file or image
column of the chosen row. A file column receives the file object; an
image column, which holds URLs, receives the image's URL.
Details
The cell is replaced, not appended to: whatever it held before is
no longer referenced by the row, although the earlier upload stays in
the base's assets. To keep several attachments, read the cell, add the
new object from hb_upload_file() and write it back with
hb_update_rows().
See also
Other files:
hb_delete_asset(),
hb_download_file(),
hb_upload_file()
Examples
# needs a SeaTable server and an API token
if (FALSE) { # \dontrun{
client <- hb_client()
hb_attach_file(client, "Samples", "abc", "Reports", "report.pdf")
} # }