Description Usage Arguments References Examples
Upload a file to an S3 object
1 2 3 4 5 6  | upload_file(filename, bucket, key = basename(filename), extra_args = NULL,
  transfer_config = list(multipart_threshold = 8388608L, max_concurrency =
  10L, multipart_chunksize = 8388608L, num_download_attempts = 5L, max_io_queue
  = 100L, io_chunksize = 262144L, use_threads = TRUE),
  aws_access_key_id = NULL, aws_secret_access_key = NULL,
  aws_session_token = NULL, region_name = NULL, profile_name = NULL)
 | 
filename | 
 path to the local file to upload  | 
bucket | 
 name of the bucket to upload to.  | 
key | 
 name of the key to use (i.e. the remote filename). Defaults to the basename
of   | 
extra_args | 
 arguments that may be passed to the client operation.  | 
transfer_config | 
 transfer configuration to be used when performing the transfer. Pre-defined, default values are provided for the following settings: 
  | 
aws_access_key_id | 
 AWS access key id  | 
aws_secret_access_key | 
 AWS secret access key  | 
aws_session_token | 
 AWS session token  | 
region_name | 
 region name  | 
profile_name | 
 profile name  | 
https://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.download_file
1 2 3 4  | ## Not run: 
upload_file('/tmp/hello.txt', 'mybucket', 'hello.txt')
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.