upload_file
Upload a file to an S3 bucket with automatic MIME type detection. Requires AWS credentials and bucket name set as environment variables.
Instructions
Upload a file to S3 bucket. The file will be uploaded with automatic MIME type detection based on file extension. Requires AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, and BUCKET_NAME environment variables to be set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Optional S3 object key. If not provided, will use the filename | |
| filePath | Yes | Absolute path to the file to upload |