API multipart file upload error in NocoBase workflow: “Required part ‘file’ is not present / Please enter correct file name”

Problem Overview

I’m integrating Dotgo’s RCS campaign API with NocoBase using the workflow HTTP Request node and facing persistent errors with file upload using multipart/form-data.
Despite correct configuration—file field type set to Attachment, POST method, proper Bearer token, and campaign data—the API returns one of the following errors:

  • "Required part 'file' is not present."
  • "Please enter correct file name"

What I’ve tried

  • File field in NocoBase collection is Attachment, not just Attachment (URL).
  • HTTP node uses multipart/form-data, and body includes two fields:
    • data (Text): JSON string for campaign details
    • file (File): Variable set to Trigger data → file (points to actual uploaded file object)
  • originalFileName is set using the file object, e.g. {{$context.data.file.title}}.{{$context.data.file.url.split('.').pop()}}
  • Variable picker in the HTTP node is definitely mapped to the file object, not just the file URL.
  • All properties on my attachment object are present (title, url, sometimes name, extname, mimetype).

What works in Postman

The exact API call using a direct file upload from the local system via Postman works perfectly with the same headers and JSON payload.

Suspected Challenges

  • NocoBase workflow might send only metadata or URL, not the actual file binary data.
  • File-manager/storage adapter doesn’t expose the binary file stream as needed for multipart upload.
  • The file object in workflow may lack correct filename or extension, causing Dotgo to reject the upload.

Sample file object in workflow trigger data:

json

{
  "title": "personalized-sf8ml2",
  "url": "/uploads/personalized-sf8ml2.txt",
  "extname": ".txt",
  "mimetype": "text/plain",
  "size": 8931,
  "storageId": "local0...xyz"
}

I’m assigning the file field in the HTTP Request node to this object, but the API still fails.

Questions for the community:

  1. Has anyone resolved file binary streaming issues with NocoBase HTTP workflow node and third-party APIs (like Dotgo)?
  2. Is there a workaround to map or transform attachment objects to actual binary in workflow nodes?
  3. Is there some required setting in the NocoBase plugin/workflow/field config that guarantees the binary upload, not just the file metadata?
  4. Is there a way to force the originalFileName or file variable in workflow to always include the full filename and extension?

Any insights, examples, or plugin recommendations that enable true file streams in workflows will help greatly!

Thanks in advance. Happy to provide extra debug/output or config screenshots if needed.