AIGC网盘

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

Overview

This node integrates with the AIGC Network Disk service to perform file operations such as retrieving file information, listing files, uploading files (from local binary data or external URLs), downloading files, and deleting files (single or batch).

For the "获取文件信息" (Get File Info) operation, it fetches detailed metadata about a specific file identified by its file ID. This is useful when you need to verify file attributes like name, size, type, URL, upload time, and expiration status before further processing or decision-making in your workflow.

Practical example:
You have a workflow that processes files stored on AIGC Network Disk. Before downloading or sharing a file, you want to confirm its existence and retrieve its metadata. Using this node's "获取文件信息" operation, you input the file ID and get back comprehensive details about the file.

Properties

Name Meaning
文件ID The unique identifier of the file whose information you want to retrieve. (Required)

Output

The output JSON object for the "获取文件信息" operation contains:

  • success: Boolean indicating if the request was successful.
  • data: An object containing detailed file information returned from the API, including fields such as:
    • id: File ID
    • filename: Stored filename
    • original_name: Original filename at upload
    • file_size: Size of the file in bytes
    • file_type: MIME type or file category
    • url: Direct URL to access the file
    • preview_url: URL for previewing the file if available
    • is_expired: Boolean indicating if the file has expired
    • upload_time: Timestamp of when the file was uploaded
  • operation: The string "getFileInfo" indicating the performed operation.
  • fileId: The queried file ID.
  • quickInfo: A summary object with key file attributes for quick reference.

No binary data is output for this operation; it strictly returns metadata in JSON format.

Dependencies

  • Requires an API key credential for authenticating requests to the AIGC Network Disk API.
  • The node uses HTTP requests authenticated via this credential to communicate with the external AIGC Network Disk service.
  • No additional environment variables are explicitly required beyond the configured API authentication.

Troubleshooting

  • Common issues:

    • Providing an empty or invalid file ID will cause errors.
    • If the file does not exist, the node throws an error indicating the file is not found.
    • Insufficient permissions or expired API tokens result in authorization errors.
    • Server-side errors may occur due to internal issues on the AIGC Network Disk service.
  • Error messages and resolutions:

    • "文件ID不能为空" ("File ID cannot be empty"): Ensure you provide a valid non-empty file ID.
    • "文件不存在,文件ID: {fileId}" ("File does not exist, file ID: {fileId}"): Verify the file ID is correct and the file still exists.
    • "没有权限访问该文件" ("No permission to access this file"): Check that your API token has sufficient rights.
    • "API Token无效或已过期" ("API Token invalid or expired"): Renew or update your API authentication token.
    • "服务器内部错误,请稍后重试" ("Internal server error, please try again later"): Retry after some time or contact support if persistent.

Links and References

Discussion