Replace files associated with an item

Share:

Description

replaces existing files associated with an item with a new one. (Currently does not support multi-file uploads.) This function will not append an existing collection of files. If that is desired, use item_append_files

Usage

1
2

Arguments

sb_id

An sbitem object or a character ScienceBase ID corresponding to the item

files

A character vector of file paths

...

Additional parameters are passed on to GET, POST, HEAD, PUT, or DELETE

all

A boolean indicating if all attached files should be removed before uploading new files. FALSE if only files with matching names should be replaced. If you wish to upload files with duplicate names, see item_append_files. Defaults to FALSE.

session

Session object from authenticate_sb. Defaults to anonymous or last authenticated session

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.