Actions59
- 云空间 Actions
- 工具接口 Actions
- 待办任务 Actions
- 机器人 Actions
- 消息卡片(旧) Actions
- 用户 Actions
- 群组 Actions
- 订阅 Actions
工具接口 → 上传图片
AI-generatedOverview
This node interacts with the POPO OpenPlatform API, supporting multiple resources and operations. Specifically, for the '工具接口' resource and '上传图片' operation, it uploads an image file to the platform. It validates the file path, checks the file format (supports jpg, jpeg, gif, png), and enforces a size limit of 5MB before uploading. This node is useful for automating image uploads in workflows, such as uploading user avatars or product images.
Use Case Examples
- Uploading a user profile picture by providing the local file path of the image.
- Automating the upload of images to a content management system via the POPO OpenPlatform API.
Properties
| Name | Meaning |
|---|---|
| File | The local file path of the image to upload. Supported formats are jpg, jpeg, gif, and png, with a maximum size of 5MB. |
Output
JSON
response- The JSON response from the POPO OpenPlatform API after uploading the image, containing details about the uploaded image or any errors.
Dependencies
- Requires an API key credential for the POPO OpenPlatform API to authenticate requests.
Troubleshooting
- File path is required and must point to an existing file; otherwise, an error 'File path is required for image upload' or 'File not found' will be thrown.
- Only jpg, jpeg, gif, and png formats are supported; uploading other formats will result in an 'Unsupported file format' error.
- File size must not exceed 5MB; larger files will cause a 'File size exceeds 5MB limit' error.