Hudu icon

Hudu

Interact with Hudu REST API

Upload → Get

AI-generated

Overview

This node interacts with the Hudu API to retrieve information about uploads. Specifically, for the 'Upload' resource with the 'Get' operation, it fetches details of a specific upload by its ID. It can either return the metadata of the upload as JSON or download the actual file based on the user's choice. This is useful in scenarios where users need to access or download files stored in Hudu, such as retrieving documentation, images, or other uploaded assets.

Use Case Examples

  1. Retrieve metadata of an upload by specifying its ID to display information about the file.
  2. Download the actual file of an upload by setting the download option to true, useful for processing or saving the file locally.

Properties

Name Meaning
Upload ID The unique identifier of the upload to retrieve. Required for the get operation.
Download Boolean flag indicating whether to download the file content instead of returning JSON metadata.

Output

JSON

  • id - The unique identifier of the upload.
  • name - The name of the uploaded file.
  • size - The size of the uploaded file in bytes.
  • contentType - The MIME type of the uploaded file.
  • createdAt - Timestamp when the upload was created.
  • updatedAt - Timestamp when the upload was last updated.
  • downloadUrl - URL to download the file if the download option is false.

Dependencies

  • Hudu REST API
  • API authentication token (credential)

Troubleshooting

  • Ensure the Upload ID is valid and exists in the Hudu system to avoid errors.
  • If the download option is enabled, verify that the node has permission to download files and that the file exists.
  • Common error messages may include resource not found or permission denied, which can be resolved by checking the upload ID and API credentials.

Discussion