Upload many files sequentially to a single session or a single
folder. Optionally runs a preflight check for duplicate basenames and skips
those uploads. With on_error = "stop" (default), fails fast on the
first error and throws databraryr_bulk_error with a partial tibble for
resume_bulk.
Arguments
- vol_id
Target volume number. Must be a positive integer.
- session_id
Session id when uploading to a session. Exactly one of
session_idandfolder_idmust be non-NULL.- file_paths
Character vector of local file paths to upload. Each must point to an existing file.
- folder_id
Folder id when uploading to a folder. Exactly one of
session_idandfolder_idmust be non-NULL.- preflight
Logical; if
TRUE(default), skip files whose basename already exists in the target session or folder (viacheck_duplicate_files_in_sessionorcheck_duplicate_files_in_folder).- vb
Show verbose messages. (Defaults to
FALSE, overwritable using option 'databraryr.vb' or environment variable 'R_DATABRARYR_VB')- rq
An
httr2request object. Defaults toNULL.- on_error
"stop"(default) throwsdatabraryr_bulk_erroron first failure after retries;"collect"marks failed rows and continues.- max_retries
Non-negative integer: extra attempts per input after the first failure (default
0).- retry_delay
Seconds to sleep between retries (default
0).
Value
A tibble with one row per input file and columns:
input (path), status ("success", "failed",
"skipped", or "pending"), result (list-column with
the per-file API response or NULL), error (character
message on failure), and reason (e.g. "duplicate").
