Description Usage Arguments Value See Also Examples
Puts an object into an Qingstor bucket
1 | put_object(file, object, bucket, headers = list(), ...)
|
file |
A character string containing the filename (or full path) of the file you want to upload to Qingstor. |
object |
A character string containing the name the object should have in Qingstor (i.e., its "object key"). If missing, the filename is used. |
bucket |
Character string with the name of the bucket. |
headers |
List of request headers for the REST call. |
folder |
A character string specify the folder name in the bucket. Optional |
If successful, TRUE
, otherwise an qingstor_error object.
1 2 3 | # put an object in Qingstor bucket
tempPath <- file.path("path","to","folder","xxxx.csv")
put_object(file = tempPath , object = basename(tempPath),folder = 'folder_name', bucket = 'bucket_name')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.