Question Details

Unanswered
Upload rich menu image error

I am trying to post an jpg image to richmenu id using soap ui, but am getting following error

Below is the raw request formed

POST https://api.line.me/v2/bot/richmenu/richmenu-f879f2ba087f251cc91e7454cc98080b/content HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/form-data; boundary="----=_Part_54_2117238342.1554898473758" MIME-Version: 1.0 Authorization: Bearer lynWzcfJkKbQaUkdHC9Kq9chGicSAtNN+kcd2dkd992iqEQnepTaVzGWjmcJK7C2ii9rZKzUn6vJU+PWA8/ZlZqrKhd4r0+U/9g0BOrLezFbTLByr8WqsnkX05ibhNb5XCNtwiDnfQPHGfizyTXz0AdB04t89/1O/w1cDnyilFU= Content-Length: 282351 Host: api.line.me Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

------=_Part_54_2117238342.1554898473758 Content-Type: multipart/form-data Content-Transfer-Encoding: 8bit

C:/Users/Administrator/Desktop/controller-rich-menu-image-e1734c7d.jpg ------=_Part_54_2117238342.1554898473758 Content-Type: image/jpeg Content-Transfer-Encoding: binary Content-Disposition: form-data; name="file"; filename="controller-rich-menu-image-e1734c7d.jpg"

<jpg content>

Raw Response content

HTTP/1.1 415 Unsupported Media Type Server: nginx Content-Type: application/json;charset=UTF-8 x-line-request-id: 2873c512-1d34-49f3-9f9c-747586e3da2b x-content-type-options: nosniff x-xss-protection: 1; mode=block x-frame-options: DENY Content-Length: 36 Expires: Wed, 10 Apr 2019 12:05:36 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Wed, 10 Apr 2019 12:05:36 GMT Connection: close

{"message":"Unsupported media type"}

0
Edited: 3 months ago
Profile picture
Murali M S

Answers

0
Are you sure? question.vm