AIGC网盘

与AIGC网盘进行文件操作的集成节点

Overview

This node integrates with the AIGC Network Disk service to perform file operations such as uploading, downloading, listing, and deleting files. Specifically, the "通过URL上传" (Upload via URL) operation allows users to provide an external file URL, which the node downloads and uploads directly to the AIGC Network Disk storage.

This operation is useful when you want to save files from the internet or other external sources into your cloud disk without manually downloading and re-uploading them. For example, you can automate saving images, documents, or media files referenced by URLs in your workflows.

Properties

Name Meaning
文件URL The URL address of the file to download and upload. Must be a valid HTTP or HTTPS URL.
自定义文件名 Custom filename for the uploaded file. If not provided, the filename will be inferred from the URL.
文件描述 Description information about the file.
文件分类 File category selection. Options: 图片 (Image), 文档 (Document), 音频 (Audio), 视频 (Video), 其他 (Other). Default is 其他 (Other).
文件标签 File tags, multiple tags separated by commas (e.g., 测试,示例,重要).

Output

The output JSON object contains:

  • success: Boolean indicating if the upload was successful.
  • data: The response data from the AIGC Network Disk API after uploading the file.
  • operation: The string "uploadFromUrl" indicating the performed operation.
  • sourceUrl: The original URL of the uploaded file.
  • filename: The custom filename provided or "auto-detected" if inferred from the URL.

No binary data is output for this operation since the file is uploaded directly from the URL.

Dependencies

  • Requires an API key credential for authenticating requests to the AIGC Network Disk API.
  • The node uses HTTP POST requests to the /api/files/upload-from-url endpoint of the AIGC Network Disk service.
  • Proper network access to the external file URL must be available from the n8n environment.

Troubleshooting

  • Invalid or empty URL: The node throws an error if the URL is empty or does not start with http:// or https://.
  • HTTP errors from the API:
    • 400 Bad Request: Usually means the URL is invalid or the file cannot be accessed.
    • 404 Not Found: The file at the URL does not exist.
    • 413 Payload Too Large: The file size exceeds the allowed upload limit.
    • 401 Unauthorized: The API token is invalid or expired.
    • 403 Forbidden: No permission to upload files.
    • 5xx Server Errors: Internal server errors; retry later.
  • Network issues: Ensure that the n8n instance has internet access to reach both the external URL and the AIGC Network Disk API.
  • To resolve errors, verify the URL format, check API credentials, and confirm network connectivity.

Links and References

Discussion