Actions59
- 云空间 Actions
- 工具接口 Actions
- 待办任务 Actions
- 机器人 Actions
- 消息卡片(旧) Actions
- 用户 Actions
- 群组 Actions
- 订阅 Actions
云空间 → 创建文件
AI-generatedOverview
This node integrates with the POPO OpenPlatform API, providing a wide range of operations across multiple resources such as 云空间 (cloud drive), user management, messaging, tasks, and groups. Specifically, for the 云空间 resource and 创建文件 operation, it allows users to create files in the cloud drive, supporting various file upload methods including simple upload, part upload, and document creation with options for sharing and online conversion. This node is useful for automating file management workflows, such as uploading documents, creating folders, and managing file permissions in a cloud environment.
Use Case Examples
- Uploading a document to a specific folder in the 云空间 with read or edit sharing permissions.
- Creating an online document from an uploaded file with options to keep the original file.
- Preparing and completing multipart file uploads for large files.
Properties
| Name | Meaning |
|---|---|
| Category | Specifies the category of the operation within the drive resource, such as asynchronous tasks, file uploads, folders, file operations, or user center. |
| fileName | The name of the file to be created or uploaded. |
| Permission | Numeric value representing the permission level for the file. |
| bucketName | The bucket name used in multipart upload operations. |
| objectKey | The object key used in multipart upload operations. |
| uploadId | The upload ID used in multipart upload operations. |
| shareType | The type of link sharing: 0 for no sharing, 1 for read-only sharing, 2 for edit sharing. |
| transferOnlineDoc | Indicates whether the file should be converted to an online document (1 for yes). Supported file extensions are docx, txt, xls, xlsx, csv. |
| keepFileDoc | If the file is converted online, indicates whether to keep the original file (1 for yes). |
| folderId | The ID of the folder where the file will be created or uploaded. |
| filePartList | A collection of file parts for multipart upload, each with size, MD5 hash, and part number. |
| etags | A collection of ETags for each uploaded part in multipart upload, used to finalize the upload. |
Output
JSON
response- The JSON response from the POPO OpenPlatform API after performing the file creation or upload operation.
Dependencies
- Requires an API key credential for POPO OpenPlatform API authentication.
Troubleshooting
- Ensure that required parameters like fileName, folderId, and uploadId (for multipart uploads) are correctly provided to avoid API errors.
- For file uploads, verify that the file path exists and the file format is supported (jpg, jpeg, gif, png for image uploads).
- File size limits must be respected, e.g., image uploads have a 5MB limit.
- Multipart upload operations require correct sequencing and ETag values for each part to successfully complete the upload.
Links
- POPO OpenPlatform Drive API Documentation - Official documentation for the cloud drive API including file creation and upload operations.