b2_upload_file_direct: Upload a file

Description Usage Arguments Details Value

View source: R/b2_upload_file.R

Description

Upload a file to B2

Usage

1
2
b2_upload_file_direct(data, bucket_id, upload_filename,
  mime_type = mime::guess_type(upload_filename))

Arguments

data

Either a raw vector of the data or the path to the file

bucket_id

The id of the bucket to which to upload the file

upload_filename

Name of the file to save in B2

mime_type

MIME type

Details

This performs both the step of getting an upload URL (b2_get_upload_url) and uploading the file (b2_upload_file)

Value

A list of the JSON response


mvanhala/B2R documentation built on Aug. 26, 2020, 10:42 a.m.