Description Usage Arguments Details Value
View source: R/b2_upload_file.R
Upload a file to B2
1 2 | b2_upload_file_direct(data, bucket_id, upload_filename,
mime_type = mime::guess_type(upload_filename))
|
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 |
This performs both the step of getting an upload URL (b2_get_upload_url
)
and uploading the file (b2_upload_file
)
A list of the JSON response
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.