upload_local_file
Easily transfer local files to Qiniu Cloud Storage by specifying the bucket, unique key, file path, and overwrite option.
Instructions
Upload a local file to Qiniu bucket.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
bucket | Yes | Qiniu Cloud Storage bucket Name | |
file_path | Yes | The file path of file to upload. | |
key | Yes | The key under which a file is saved in Qiniu Cloud Storage serves as the unique identifier for the file within that space, typically using the filename. | |
overwrite | No | Whether to overwrite the existing object if it already exists. |
Input Schema (JSON Schema)
{
"properties": {
"bucket": {
"description": "Qiniu Cloud Storage bucket Name",
"type": "string"
},
"file_path": {
"description": "The file path of file to upload.",
"type": "string"
},
"key": {
"description": "The key under which a file is saved in Qiniu Cloud Storage serves as the unique identifier for the file within that space, typically using the filename.",
"type": "string"
},
"overwrite": {
"description": "Whether to overwrite the existing object if it already exists.",
"type": "boolean"
}
},
"required": [
"bucket",
"key",
"file_path"
],
"type": "object"
}