# upload_s3



{{< badge >}}Function{{< /badge >}}

Arg | Description | Type
----|-------------|-----
file|The file to upload|OSPath (required)
name|The name of the file that should be stored on the server|string
accessor|The accessor to use|string
bucket|The bucket to upload to|string (required)
region|The region the bucket is in|string
credentials_key|The AWS key credentials to use|string
credentials_secret|The AWS secret credentials to use|string
credentials_token|The AWS session token to use (only needed for temporary credentials)|string
endpoint|The Endpoint to use|string
serverside_encryption|The server side encryption method to use|string
kms_encryption_key|The server side KMS key to use|string
s3upload_root|Prefix for the S3 object|string
skip_verify|Skip TLS Verification|bool
path_style|Use path style URLs if set|bool
secret|Alternatively use a secret from the secrets service. Secret must be of type 'AWS S3 Creds'|string

**Required permissions:** `NETWORK`, `FILESYSTEM_READ`

### Description

Upload files to S3.

This function can be used to upload to an AWS S3 bucket or to a
MinIO self hosted bucket.

Read [How To Set Up A MinIO For File
Uploads](https://docs.velociraptor.app/knowledge_base/tips/dropbox_server)

[This
presentation](https://training.velociraptor.app//modules/offline_collection/cloud_upload.html#/8)
shows how to safely configure an AWS bucket for use with this
plugin.



