Using the REST POST Action to Send User Files - Using the REST POST Action to Send User Files - The POST action can be used to send files from a process to an external REST service. Use this approach when a process needs to upload documents, images, PDFs, or other file types to an external application, content repository, or service. Files can be sent as raw JSON content, multipart form data, or binary content depending on the requirements of the target REST API. - Content Innovation Cloud - Hyland Automate Modeler - Current/Hyland-Automate-Modeler/xyp1677161762110 - Current - Current

Hyland Automate Modeler

Platform
Content Innovation Cloud
Product
Hyland Automate Modeler
Release
Current
License
ft:lastPublication
2026-11-02T23:02:36.222215
ft:locale
en-US

The POST action can be used to send files from a process to an external REST service. Use this approach when a process needs to upload documents, images, PDFs, or other file types to an external application, content repository, or service. Files can be sent as raw JSON content, multipart form data, or binary content depending on the requirements of the target REST API.

Use the POST action to send files when:

  • Documents must be uploaded to an external repository.
  • An external service requires file-based input.
  • Images, PDFs, or attachments must be transferred to another application.
  • Process content must be sent to an external API.
Note: Individual files are limited to 10 MB. Files are processed one at a time to reduce memory usage. Processes that upload many large files concurrently may experience longer execution times.

The following example uploads a file selected by a user.

  1. In your process, create a User task named Attach file.
  2. Create a REST Connector named Send POST request.
  3. Join the User task to the REST Connector.
  4. Select the REST Connector.
    The connector properties are displayed in the pane on the right.
  5. In the Properties pane, select the POST action from the Action drop-down menu.
  6. Under the Input mapping section, click the pencil button next to RequestPayload.
    The Edit variable mapping window is displayed.
  7. Select the content type from the Content Type drop-down menu. You can select one of the following options:
    Content Type Description
    raw

    This type of parameter allows you to edit a JSON file and manually enter the needed properties.

    To use this option, in the Value column on the right, enter the following:

    { "base64File": "${getBase64FileContent(file)}" }

    where file is the file process variable (may have a different name in your process).

    Use the raw option when the target service expects file contents encoded as JSON.

    form-data

    This type of parameter allows you to edit a list of properties, each of which has its own key, type, and value.

    To use this option, in the Value column on the right, select the + button to add a new property, enter its Key and select the Variable type from the drop-down menu. Then you can select the file from your Workspace from the next drop-down menu.

    Use the form-data option when the API expects multipart form submissions.

    binary

    This type of parameter allows you to select the file from a drop-down menu.

    To use this option, in the Value column on the right, select the file from your Workspace from the next drop-down menu.

    Use the binary option when the entire request body should contain the file.

    When using binary uploads, you can enable Automatic file type recognition. When enabled, Studio Modeler detects the file type automatically. When disabled, the file is treated as a generic binary file (.bin).

  8. In the Edit Variable Mapping dialog box, select the restUrI parameter on the left.
  9. Select the Value tab on the right.

    The input box for value is displayed.

  10. Enter the UrI you want to use. For example: https://postman-echo.com
  11. Click Update.
    The REST connector is updated with the changes.
The process is now ready to send files provided in the user task.