putObjectSourceUrl
Download files from a specified URL and upload them directly to a Tencent Cloud COS storage bucket, specifying the target directory and file name.
Instructions
通过 url下载文件并将文件上传到存储桶
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fileName | No | 文件名 (存在存储桶里的名称) | |
sourceUrl | Yes | 可下载的文件 url | |
targetDir | No | 目标目录 (存在存储桶的哪个目录) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"fileName": {
"description": "文件名 (存在存储桶里的名称)",
"type": "string"
},
"sourceUrl": {
"description": "可下载的文件 url",
"type": "string"
},
"targetDir": {
"description": "目标目录 (存在存储桶的哪个目录)",
"type": "string"
}
},
"required": [
"sourceUrl"
],
"type": "object"
}