putObject
Upload local files to a specified bucket and directory in Tencent Cloud Object Storage (COS) using file path, name, and target directory details for efficient storage management.
Instructions
上传本地文件到存储桶
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fileName | No | 文件名 (存在存储桶里的名称) | |
filePath | Yes | 文件路径 (包含文件名) | |
targetDir | No | 目标目录 (存在存储桶的哪个目录) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"fileName": {
"description": "文件名 (存在存储桶里的名称)",
"type": "string"
},
"filePath": {
"description": "文件路径 (包含文件名)",
"type": "string"
},
"targetDir": {
"description": "目标目录 (存在存储桶的哪个目录)",
"type": "string"
}
},
"required": [
"filePath"
],
"type": "object"
}