Description Usage Arguments Details Value
View source: R/b2_upload_file.R
Upload a file to B2
1 2 | b2_upload_file(data, upload_url, upload_token, upload_filename,
mime_type = mime::guess_type(upload_filename))
|
data |
Either a raw vector of the data or the path to the file |
upload_url |
The upload_url |
upload_token |
The upload token |
upload_filename |
Name of the file to save in B2 |
mime_type |
MIME type |
See https://www.backblaze.com/b2/docs/b2_upload_file.html
This requires getting an upload URL and token by calling
b2_get_upload_url
first
To upload a file directly, use b2_upload_file_direct
A list of the JSON response
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.