Superchat icon

Superchat

Receive and send messages from WhatsApp, Instagram, Messenger, E-Mail, SMS, via Live Chat and Telegram.

File → Create File

AI-generated

Overview

This node operation allows users to create/upload a file by providing binary file data. It is useful in scenarios where files need to be programmatically uploaded or created within a workflow, such as attaching files to messages, storing documents, or processing file uploads automatically.

Use Case Examples

  1. Uploading a user profile picture from binary data.
  2. Creating a document file from binary input for storage or further processing.

Properties

Name Meaning
Input Data Field Name The name of the input field containing the binary file data to be uploaded

Output

JSON

  • id - The unique identifier of the created file
  • name - The name of the created file
  • size - The size of the created file in bytes
  • mimeType - The MIME type of the created file
  • url - The URL or path where the created file can be accessed

Dependencies

  • Requires an API key credential for authentication with the Superchat API service.

Troubleshooting

  • Ensure the binary data field name matches the input property name exactly; otherwise, the file data will not be found.
  • Check that the binary data provided is valid and correctly formatted as a file.
  • Verify that the API credentials are correctly set up and have permissions to create files.
  • Common error messages may include authentication failures, missing binary data, or invalid file format errors. Resolving these involves verifying credentials, input data, and file format compatibility.

Links

Discussion