Uploads a local file to a MinIO bucket. If the object name is not provided, the base name of the local file path is used as the object key.
Usage
minio_fput_object(
bucket,
object = NULL,
file,
multipart = FALSE,
use_https = TRUE,
region = ""
)Arguments
- bucket
Character. Name of the MinIO bucket.
- object
Character or
NULL. Object key (path) to use in the bucket. IfNULLor empty, defaults tobasename(file).- file
Character. Path to the local file to upload.
- multipart
Logical. Whether to enable multipart upload. Defaults to
FALSE.- use_https
Logical. Whether to use HTTPS when connecting to MinIO.
- region
Character. Region string required by
aws.s3.
Details
This function wraps put_object and adds input
validation and clearer error handling for MinIO environments.
