Uploadcare API icon

Uploadcare API

Full-featured Uploadcare integration for n8n (all upload-client and rest-client methods)

Overview

This node integrates with the Uploadcare API, providing a comprehensive set of file and group management operations. It allows users to upload files (single or multiple), manage file storage, delete files or groups, retrieve file information, handle metadata, work with webhooks, perform file conversions, and execute add-ons.

The deleteFiles operation specifically enables batch deletion of multiple files by their UUIDs. This is useful in scenarios where you need to clean up or remove several files from your Uploadcare storage at once, such as after processing or when files are no longer needed.

Practical example:
You have a workflow that processes images uploaded by users. After processing, you want to delete all temporary files in one go. Using this node's deleteFiles operation, you can provide an array of file UUIDs to efficiently delete them in bulk.

Properties

Name Meaning
UUIDs Array of file UUIDs to delete. Accepts multiple values representing the files to remove.

Output

The output is a JSON object containing the response from the Uploadcare API for the deleteFiles operation. This typically includes confirmation of deletion status for each specified file UUID.

The node does not output binary data for this operation.

Dependencies

  • Requires an API key credential for Uploadcare with both public and private keys.
  • Uses Uploadcare's official JavaScript SDK packages (@uploadcare/upload-client and @uploadcare/rest-client) to interact with the API.
  • The node expects proper configuration of these credentials within n8n.

Troubleshooting

  • Common issues:

    • Invalid or missing UUIDs: Ensure the UUIDs provided are correct and correspond to existing files.
    • Authentication errors: Verify that the API keys are valid and have sufficient permissions.
    • Network or API downtime: Check connectivity and Uploadcare service status.
  • Error messages:

    • "Unknown operation": Indicates an unsupported operation was requested; ensure the operation parameter is set to deleteFiles.
    • API errors related to invalid UUIDs or permissions will be returned by the Uploadcare API; review the error details for corrective action.

Links and References

Discussion