Actions22
- Runway Actions
- Minimax Actions
- Midjourney Actions
Overview
The "Upload File" operation of the Minimax resource in this node allows users to upload image files to the Minimax service via UseAPI. The file can be provided either as binary data from a previous node or by specifying a URL to fetch the file from. This operation is useful for workflows that need to programmatically add images to Minimax, such as automating content management, preparing assets for video creation, or integrating with other systems that generate or store images.
Practical examples include:
- Uploading an image received from a webhook or form submission directly into Minimax.
- Fetching an image from a public URL and uploading it to Minimax for further processing or storage.
- Automating batch uploads of images stored locally or remotely.
Properties
| Name | Meaning |
|---|---|
| Input Type | Specifies the source of the file to upload. Options: "Binary File" (from binary data) or "URL" (fetch file from a URL). |
| Binary Property | When "Input Type" is "Binary File", this is the name of the binary property containing the file data (default: "data"). |
| URL | When "Input Type" is "URL", this is the URL of the file to upload. |
Output
The output JSON contains the response from the Minimax API after uploading the file. It typically includes metadata about the uploaded file such as its ID, URL, and other related information returned by the API.
If the node supports binary data input, it does not output binary data itself but processes it internally to upload the file.
Dependencies
- Requires an active API key credential for Minimax configured in n8n.
- The node makes HTTP requests to the Minimax API endpoint at
https://api.useapi.net/v1/minimax/files/. - For "URL" input type, the node fetches the file content from the specified URL before uploading.
- The uploaded file must be an image; the node validates that the MIME type starts with
image/.
Troubleshooting
- No binary data found: If "Input Type" is set to "Binary File" but no binary data exists on the specified property, the node will throw an error. Ensure the previous node outputs binary data under the correct property name.
- Invalid content type: Only image files are supported for upload. If the binary data's MIME type does not start with
image/, the node will reject the upload. Verify the file format before uploading. - Failed to fetch URL: When using the "URL" input type, if the URL is invalid or inaccessible, the node will fail to download the file. Check the URL and network connectivity.
- Missing API credentials: The node requires a valid Minimax API key credential. Without it, requests will fail with authorization errors.
- General API errors: Network issues or API limits may cause failures. Review error messages and ensure proper API usage.
Links and References
- Minimax API Documentation (general reference for Minimax endpoints)
- n8n HTTP Request Node Documentation (for understanding HTTP request handling in n8n)
This summary is based solely on static analysis of the provided source code and property definitions.