Error on trying to add files to the transaction in Postman: Missing content-type boundary

Symptoms

When trying to perform the request to add files to the transaction in Postman, it fails with HTTP 400 Bad Request and the following details:

The passed parameters have an invalid value: "Missing content-type boundary" 

Cause

The 'Content-Type': 'multipart/form-data' header from the request configuration is automatically set by the uploader.

Resolution

Check the Headers tab. If the 'Content-Type': 'multipart/form-data' header is present there, please try disabling/removing it, so that the request will be as follows:

Have more questions? Submit a request

Comments

1 comment

  • Avatar

    Julien Fremeau

    Hello,
    We tried your solution but we still get a 400 error that states "multipart/* content expected" as below.

    Any suggestion to make it work?

    {

        "type": "https://platform.abbyy.cloud/common/param-validation-error",

        "title": "The passed parameters have invalid value",

        "status": 400,

        "detail": "multipart/* content expected",

        "severity": "User",

        "invalidParams": {

            "file": [

                {

                    "type": "https://platform.abbyy.cloud/common/param-validation-error",

                    "title": "The passed parameters have invalid value",

                    "detail": "multipart/* content expected"

                }

            ]

        },

        "vars": {

            "MemberName": "file"

        }

    }

    0

Please sign in to leave a comment.