415 Unsupported Media Type (5455)

Hello,

Could anybody please help me to understand the reason of error during an Image uploading via HTTP POST request.

Response message:

"errors": [
        {
            "code": 5455,
            "message": "Uploaded image must have image/jpeg, image/png, image/webp, image/gif or image/svg+xml content-type"
        }
    ]

Request body:

-----011000010111000001101001
Content-Disposition: form-data; name="file"; filename="10px_image.png"
Content-Type: image/png

100100010000101001110010111000101011000001010000010110000101000000000000000000000000000010110000100100100001001000100010010010100000000000000000000000000101000000000000000000000000000001010000000100000100000000000000000000000000000001000000000010100001101001010111000000000000000000000000100000001100111001001010111000100100001000000000011101010111001100111000100101110000000000000000000000000010000011100110100000101011001010000010000000000000000010001101111100011101000000111111100001101010000000000000000000000000000010010000000011100001001010011010110011100000000000000000010010000010111000000000000000000100100000101110100000000111101101100110111110000001111000000000000000000000000011001000100100100010001010000010001010100001010011001010110001100001111011010100110001010100000111100000101100010101001011000110100000100100110001010100000000000010000111111110101011101010100100100010101100011010000000001111000000000000000000000000000000001001001010100010011100100010001001110101010000100000011001000001
-----011000010111000001101001--

Request header Content-type has the next value “multipart/form-data; boundary=—011000010111000001101001”

It’s something wrong my request format or with image data?

Hey,
This question is still relevant, so if sombd know the answer - please help :slight_smile:

This topic was automatically closed after 15 days. New replies are no longer allowed.