item_replace_files: Replace files associated with an item

Description Usage Arguments

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



Search within the sbtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.